Class PassthroughPaymentRollbackServiceImpl

java.lang.Object
org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayRollbackService
org.broadleafcommerce.core.checkout.service.gateway.PassthroughPaymentRollbackServiceImpl
All Implemented Interfaces:
org.broadleafcommerce.common.payment.service.PaymentGatewayRollbackService

@Service("blPassthroughPaymentRollbackService") public class PassthroughPaymentRollbackServiceImpl extends org.broadleafcommerce.common.payment.service.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 Details

    • LOG

      protected static final org.apache.commons.logging.Log LOG
    • orderService

      protected OrderService orderService
    • orderPaymentService

      protected OrderPaymentService orderPaymentService
  • Constructor Details

    • PassthroughPaymentRollbackServiceImpl

      public PassthroughPaymentRollbackServiceImpl()
  • Method Details

    • rollbackAuthorize

      public org.broadleafcommerce.common.payment.dto.PaymentResponseDTO rollbackAuthorize(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO transactionToBeRolledBack) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Specified by:
      rollbackAuthorize in interface org.broadleafcommerce.common.payment.service.PaymentGatewayRollbackService
      Overrides:
      rollbackAuthorize in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayRollbackService
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException
    • rollbackCapture

      public org.broadleafcommerce.common.payment.dto.PaymentResponseDTO rollbackCapture(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO transactionToBeRolledBack) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Specified by:
      rollbackCapture in interface org.broadleafcommerce.common.payment.service.PaymentGatewayRollbackService
      Overrides:
      rollbackCapture in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayRollbackService
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException
    • rollbackAuthorizeAndCapture

      public org.broadleafcommerce.common.payment.dto.PaymentResponseDTO rollbackAuthorizeAndCapture(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO transactionToBeRolledBack) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Specified by:
      rollbackAuthorizeAndCapture in interface org.broadleafcommerce.common.payment.service.PaymentGatewayRollbackService
      Overrides:
      rollbackAuthorizeAndCapture in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayRollbackService
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException
    • rollbackRefund

      public org.broadleafcommerce.common.payment.dto.PaymentResponseDTO rollbackRefund(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO transactionToBeRolledBack) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Specified by:
      rollbackRefund in interface org.broadleafcommerce.common.payment.service.PaymentGatewayRollbackService
      Overrides:
      rollbackRefund in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayRollbackService
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException