Class CancelPaymentService


  • @Service
    public class CancelPaymentService
    extends Object
    • Constructor Detail

      • CancelPaymentService

        public CancelPaymentService()
    • Method Detail

      • initiatePaymentCancellation

        public ResponseObject<CancelPaymentResponse> initiatePaymentCancellation​(de.adorsys.psd2.xs2a.spi.service.SpiPayment payment,
                                                                                 String encryptedPaymentId,
                                                                                 Boolean tppExplicitAuthorisationPreferred,
                                                                                 de.adorsys.psd2.xs2a.core.tpp.TppRedirectUri tppRedirectUri)
        Cancels payment with or without performing strong customer authentication
        Parameters:
        payment - Payment to be cancelled
        encryptedPaymentId - encrypted identifier of the payment
        tppExplicitAuthorisationPreferred - value of TPP's choice of authorisation method
        tppRedirectUri - TPP's redirect URIs
        Returns:
        Response containing information about cancelled payment or corresponding error