@Service public class PaymentService extends Object
| Constructor and Description |
|---|
PaymentService() |
| Modifier and Type | Method and Description |
|---|---|
ResponseObject<CancelPaymentResponse> |
cancelPayment(de.adorsys.psd2.consent.api.pis.proto.PisPaymentCancellationRequest paymentCancellationRequest)
Cancels payment by its ASPSP identifier and payment type
|
ResponseObject<PaymentInitiationResponse> |
createPayment(byte[] payment,
PaymentInitiationParameters paymentInitiationParameters)
Initiates a payment though "payment service" corresponding service method
|
ResponseObject<CommonPayment> |
getPaymentById(de.adorsys.psd2.xs2a.core.profile.PaymentType paymentType,
String paymentProduct,
String encryptedPaymentId)
Retrieves payment from ASPSP by its ASPSP identifier, product and payment type
|
ResponseObject<GetPaymentStatusResponse> |
getPaymentStatusById(de.adorsys.psd2.xs2a.core.profile.PaymentType paymentType,
String paymentProduct,
String encryptedPaymentId)
Retrieves payment status from ASPSP
|
public ResponseObject<PaymentInitiationResponse> createPayment(byte[] payment, PaymentInitiationParameters paymentInitiationParameters)
payment - Payment informationpaymentInitiationParameters - Parameters for payment initiationpublic ResponseObject<CommonPayment> getPaymentById(de.adorsys.psd2.xs2a.core.profile.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<GetPaymentStatusResponse> getPaymentStatusById(de.adorsys.psd2.xs2a.core.profile.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(de.adorsys.psd2.consent.api.pis.proto.PisPaymentCancellationRequest paymentCancellationRequest)
paymentCancellationRequest - PisPaymentCancellationRequestCopyright © 2020. All rights reserved.