Class PassthroughPaymentRollbackServiceImpl
java.lang.Object
org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayRollbackService
org.broadleafcommerce.core.checkout.service.gateway.PassthroughPaymentRollbackServiceImpl
- All Implemented Interfaces:
PaymentGatewayRollbackService
@Service("blPassthroughPaymentRollbackService")
public class PassthroughPaymentRollbackServiceImpl
extends AbstractPaymentGatewayRollbackService
This default implementation will create a compensating transaction response based on the transaction type passed in
for any Passthrough Order Payments on the order.
This is by default initiated from BroadleafCheckoutController.processPassthroughCheckout();
If an error occurs in the checkout workflow, the
ConfirmPaymentsRollbackHandler gets invoked and will call this class.- Author:
- Elbert Bautista (elbertbautista)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final org.apache.commons.logging.Logprotected OrderPaymentServiceprotected OrderService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrollbackAuthorize(PaymentRequestDTO transactionToBeRolledBack) rollbackAuthorizeAndCapture(PaymentRequestDTO transactionToBeRolledBack) rollbackCapture(PaymentRequestDTO transactionToBeRolledBack) rollbackRefund(PaymentRequestDTO transactionToBeRolledBack)
-
Field Details
-
LOG
protected static final org.apache.commons.logging.Log LOG -
orderService
-
orderPaymentService
-
-
Constructor Details
-
PassthroughPaymentRollbackServiceImpl
public PassthroughPaymentRollbackServiceImpl()
-
-
Method Details
-
rollbackAuthorize
public PaymentResponseDTO rollbackAuthorize(PaymentRequestDTO transactionToBeRolledBack) throws PaymentException - Specified by:
rollbackAuthorizein interfacePaymentGatewayRollbackService- Overrides:
rollbackAuthorizein classAbstractPaymentGatewayRollbackService- Throws:
PaymentException
-
rollbackCapture
public PaymentResponseDTO rollbackCapture(PaymentRequestDTO transactionToBeRolledBack) throws PaymentException - Specified by:
rollbackCapturein interfacePaymentGatewayRollbackService- Overrides:
rollbackCapturein classAbstractPaymentGatewayRollbackService- Throws:
PaymentException
-
rollbackAuthorizeAndCapture
public PaymentResponseDTO rollbackAuthorizeAndCapture(PaymentRequestDTO transactionToBeRolledBack) throws PaymentException - Specified by:
rollbackAuthorizeAndCapturein interfacePaymentGatewayRollbackService- Overrides:
rollbackAuthorizeAndCapturein classAbstractPaymentGatewayRollbackService- Throws:
PaymentException
-
rollbackRefund
public PaymentResponseDTO rollbackRefund(PaymentRequestDTO transactionToBeRolledBack) throws PaymentException - Specified by:
rollbackRefundin interfacePaymentGatewayRollbackService- Overrides:
rollbackRefundin classAbstractPaymentGatewayRollbackService- Throws:
PaymentException
-