Class SamplePaymentGatewayTRExtensionHandler

java.lang.Object
org.broadleafcommerce.common.extension.AbstractExtensionHandler
org.broadleafcommerce.common.web.payment.processor.AbstractTRCreditCardExtensionHandler
org.broadleafcommerce.vendor.sample.web.processor.SamplePaymentGatewayTRExtensionHandler
All Implemented Interfaces:
org.broadleafcommerce.common.extension.ExtensionHandler, org.broadleafcommerce.common.web.payment.processor.TRCreditCardExtensionHandler

@Service("blSamplePaymentGatewayTRExtensionHandler") public class SamplePaymentGatewayTRExtensionHandler extends org.broadleafcommerce.common.web.payment.processor.AbstractTRCreditCardExtensionHandler
This sample handler will add itself to the TRCreditCardExtensionManager and will add some default hidden parameters/form POST URL for our fake SampleMockProcessorController Note, we don't want this loaded into the extension manager if a real payment gateway is used, so make sure to not scan this class when using a real implementation. This is for demo purposes only. In order to use this sample extension handler, 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 Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration
     
    protected org.broadleafcommerce.common.web.payment.processor.TRCreditCardExtensionManager
     
    static final String
     
    static final String
     
    protected org.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService
     

    Fields inherited from class org.broadleafcommerce.common.web.payment.processor.AbstractTRCreditCardExtensionHandler

    paymentGatewayResolver

    Fields inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler

    enabled, priority
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration
     
     
     
    org.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService
     
    void
     
    void
    populateFormParameters(Map<String,Map<String,String>> formParameters, org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO)
     

    Methods inherited from class org.broadleafcommerce.common.web.payment.processor.AbstractTRCreditCardExtensionHandler

    createTransparentRedirectForm, getHandlerType, overrideCustomerPaymentReturnURLs, setFormActionKey, setFormHiddenParamsKey

    Methods inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler

    getPriority, isEnabled, setEnabled, setPriority

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.broadleafcommerce.common.extension.ExtensionHandler

    getPriority, isEnabled
  • Field Details

    • FORM_ACTION_URL

      public static final String FORM_ACTION_URL
      See Also:
    • FORM_HIDDEN_PARAMS

      public static final String FORM_HIDDEN_PARAMS
      See Also:
    • extensionManager

      protected org.broadleafcommerce.common.web.payment.processor.TRCreditCardExtensionManager extensionManager
    • transparentRedirectService

      protected org.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService transparentRedirectService
    • configuration

      protected org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration configuration
  • Constructor Details

    • SamplePaymentGatewayTRExtensionHandler

      public SamplePaymentGatewayTRExtensionHandler()
  • Method Details

    • init

      @PostConstruct public void init()
    • getFormActionURLKey

      public String getFormActionURLKey()
      Specified by:
      getFormActionURLKey in class org.broadleafcommerce.common.web.payment.processor.AbstractTRCreditCardExtensionHandler
    • getHiddenParamsKey

      public String getHiddenParamsKey()
      Specified by:
      getHiddenParamsKey in class org.broadleafcommerce.common.web.payment.processor.AbstractTRCreditCardExtensionHandler
    • getConfiguration

      public org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration getConfiguration()
      Specified by:
      getConfiguration in class org.broadleafcommerce.common.web.payment.processor.AbstractTRCreditCardExtensionHandler
    • getTransparentRedirectService

      public org.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService getTransparentRedirectService()
      Specified by:
      getTransparentRedirectService in class org.broadleafcommerce.common.web.payment.processor.AbstractTRCreditCardExtensionHandler
    • populateFormParameters

      public void populateFormParameters(Map<String,Map<String,String>> formParameters, org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO)
      Specified by:
      populateFormParameters in class org.broadleafcommerce.common.web.payment.processor.AbstractTRCreditCardExtensionHandler