Class SamplePaymentGatewayTransparentRedirectServiceImpl

java.lang.Object
org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayTransparentRedirectService
org.broadleafcommerce.payment.service.gateway.SamplePaymentGatewayTransparentRedirectServiceImpl
All Implemented Interfaces:
org.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService

@Service("blSamplePaymentGatewayTransparentRedirectService") public class SamplePaymentGatewayTransparentRedirectServiceImpl extends org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayTransparentRedirectService
This is an example implementation of a PaymentGatewayTransparentRedirectService. This is just a sample that mimics what hidden fields a real payment gateway implementation might put on your transparent redirect credit card form on your checkout page. Replace with a real Payment Gateway Integration like Braintree or PayPal PayFlow. In order to use load this demo service, you will need to component scan the package "com.broadleafcommerce". This should NOT be used in production, and is meant solely for demonstration purposes only.
Author:
Elbert Bautista (elbertbautista)
  • Field Details

  • Constructor Details

    • SamplePaymentGatewayTransparentRedirectServiceImpl

      public SamplePaymentGatewayTransparentRedirectServiceImpl()
  • Method Details

    • getCreateCustomerPaymentTokenReturnURLFieldKey

      public String getCreateCustomerPaymentTokenReturnURLFieldKey(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO)
      Specified by:
      getCreateCustomerPaymentTokenReturnURLFieldKey in interface org.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService
      Overrides:
      getCreateCustomerPaymentTokenReturnURLFieldKey in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayTransparentRedirectService
    • getCreateCustomerPaymentTokenCancelURLFieldKey

      public String getCreateCustomerPaymentTokenCancelURLFieldKey(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO)
      Specified by:
      getCreateCustomerPaymentTokenCancelURLFieldKey in interface org.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService
      Overrides:
      getCreateCustomerPaymentTokenCancelURLFieldKey in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayTransparentRedirectService
    • getUpdateCustomerPaymentTokenReturnURLFieldKey

      public String getUpdateCustomerPaymentTokenReturnURLFieldKey(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO)
      Specified by:
      getUpdateCustomerPaymentTokenReturnURLFieldKey in interface org.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService
      Overrides:
      getUpdateCustomerPaymentTokenReturnURLFieldKey in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayTransparentRedirectService
    • getUpdateCustomerPaymentTokenCancelURLFieldKey

      public String getUpdateCustomerPaymentTokenCancelURLFieldKey(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO)
      Specified by:
      getUpdateCustomerPaymentTokenCancelURLFieldKey in interface org.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService
      Overrides:
      getUpdateCustomerPaymentTokenCancelURLFieldKey in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayTransparentRedirectService
    • createAuthorizeForm

      public org.broadleafcommerce.common.payment.dto.PaymentResponseDTO createAuthorizeForm(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Specified by:
      createAuthorizeForm in interface org.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService
      Overrides:
      createAuthorizeForm in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayTransparentRedirectService
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException
    • createAuthorizeAndCaptureForm

      public org.broadleafcommerce.common.payment.dto.PaymentResponseDTO createAuthorizeAndCaptureForm(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Specified by:
      createAuthorizeAndCaptureForm in interface org.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService
      Overrides:
      createAuthorizeAndCaptureForm in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayTransparentRedirectService
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException
    • createCustomerPaymentTokenForm

      public org.broadleafcommerce.common.payment.dto.PaymentResponseDTO createCustomerPaymentTokenForm(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Specified by:
      createCustomerPaymentTokenForm in interface org.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService
      Overrides:
      createCustomerPaymentTokenForm in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayTransparentRedirectService
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException
    • updateCustomerPaymentTokenForm

      public org.broadleafcommerce.common.payment.dto.PaymentResponseDTO updateCustomerPaymentTokenForm(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Specified by:
      updateCustomerPaymentTokenForm in interface org.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService
      Overrides:
      updateCustomerPaymentTokenForm in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayTransparentRedirectService
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException
    • createCommonTRFields

      protected org.broadleafcommerce.common.payment.dto.PaymentResponseDTO createCommonTRFields(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO)