@Service public class PaymentService extends Object
| Constructor and Description |
|---|
PaymentService() |
| Modifier and Type | Method and Description |
|---|---|
ResponseObject<CancelPaymentResponse> |
cancelPayment(PaymentType paymentType,
String paymentId)
Cancels payment by its ASPSP identifier and payment type
|
ResponseObject |
createPayment(Object payment,
PaymentInitiationParameters paymentInitiationParameters)
Initiates a payment though "payment service" corresponding service method
|
ResponseObject |
getPaymentById(PaymentType paymentType,
String paymentId)
Retrieves payment from ASPSP by its ASPSP identifier, product and payment type
|
ResponseObject<TransactionStatus> |
getPaymentStatusById(PaymentType paymentType,
String paymentId)
Retrieves payment status from ASPSP
|
public ResponseObject createPayment(Object payment, PaymentInitiationParameters paymentInitiationParameters)
payment - Payment informationpublic ResponseObject getPaymentById(PaymentType paymentType, String paymentId)
paymentType - type of payment (payments, bulk-payments, periodic-payments)paymentId - ASPSP identifier of the paymentpublic ResponseObject<TransactionStatus> getPaymentStatusById(PaymentType paymentType, String paymentId)
paymentType - The addressed payment category Single, Periodic or BulkpaymentId - String representation of payment primary ASPSP identifierpublic ResponseObject<CancelPaymentResponse> cancelPayment(PaymentType paymentType, String paymentId)
paymentType - type of payment (payments, bulk-payments, periodic-payments)paymentId - ASPSP identifier of the paymentCopyright © 2018 Pivotal Software, Inc.. All rights reserved.