public interface PaymentGatewayRollbackService extends PaymentGatewayTypeAware
This API allows each module to provide its own implementation for rollback. Each module needs to implement this if for some reason the checkout workflow fails after payments have been finalized and the submitted transaction needs to rollback.
Modifier and Type | Method and Description |
---|---|
default PaymentResponse |
rollbackAuthorize(PaymentRequest transactionToBeRolledBack) |
default PaymentResponse |
rollbackAuthorizeAndCapture(PaymentRequest transactionToBeRolledBack) |
default PaymentResponse |
rollbackCapture(PaymentRequest transactionToBeRolledBack) |
default PaymentResponse |
rollbackRefund(PaymentRequest transactionToBeRolledBack) |
getGatewayType
default PaymentResponse rollbackAuthorize(PaymentRequest transactionToBeRolledBack) throws PaymentException
PaymentException
default PaymentResponse rollbackCapture(PaymentRequest transactionToBeRolledBack) throws PaymentException
PaymentException
default PaymentResponse rollbackAuthorizeAndCapture(PaymentRequest transactionToBeRolledBack) throws PaymentException
PaymentException
default PaymentResponse rollbackRefund(PaymentRequest transactionToBeRolledBack) throws PaymentException
PaymentException
Copyright © 2021. All rights reserved.