@Service public class PaymentService extends Object
| Constructor and Description |
|---|
PaymentService() |
| Modifier and Type | Method and Description |
|---|---|
ResponseObject<CancelPaymentResponse> |
cancelPayment(PaymentType paymentType,
String paymentProduct,
String encryptedPaymentId,
Boolean tppExplicitAuthorisationPreferred)
Cancels payment by its ASPSP identifier and payment type
|
ResponseObject<PaymentInitiationResponse> |
createPayment(Object payment,
PaymentInitiationParameters paymentInitiationParameters)
Initiates a payment though "payment service" corresponding service method
|
ResponseObject |
getPaymentById(PaymentType paymentType,
String paymentProduct,
String encryptedPaymentId)
Retrieves payment from ASPSP by its ASPSP identifier, product and payment type
|
ResponseObject<TransactionStatus> |
getPaymentStatusById(PaymentType paymentType,
String paymentProduct,
String encryptedPaymentId)
Retrieves payment status from ASPSP
|
public ResponseObject<PaymentInitiationResponse> createPayment(Object payment, PaymentInitiationParameters paymentInitiationParameters)
payment - Payment informationpaymentInitiationParameters - Parameters for payment initiationpublic ResponseObject getPaymentById(PaymentType paymentType, String paymentProduct, String encryptedPaymentId)
paymentType - type of payment (payments, bulk-payments, periodic-payments)paymentProduct - payment product used for payment creation (e.g. sepa-credit-transfers, instant-sepa-credit-transfers...)encryptedPaymentId - ASPSP identifier of the paymentpublic ResponseObject<TransactionStatus> getPaymentStatusById(PaymentType paymentType, String paymentProduct, String encryptedPaymentId)
paymentType - The addressed payment category Single, Periodic or BulkpaymentProduct - payment product used for payment creation (e.g. sepa-credit-transfers, instant-sepa-credit-transfers...)encryptedPaymentId - String representation of payment primary ASPSP identifierpublic ResponseObject<CancelPaymentResponse> cancelPayment(PaymentType paymentType, String paymentProduct, String encryptedPaymentId, Boolean tppExplicitAuthorisationPreferred)
paymentType - type of payment (payments, bulk-payments, periodic-payments)paymentProduct - payment product used for payment creation (e.g. sepa-credit-transfers, instant-sepa-credit-transfers...)encryptedPaymentId - ASPSP identifier of the paymenttppExplicitAuthorisationPreferred - value of tpp's choice of authorisation methodCopyright © 2019. All rights reserved.