Class TransparentRedirectCreditCardFormProcessor

java.lang.Object
org.broadleafcommerce.presentation.dialect.AbstractBroadleafModelModifierProcessor
org.broadleafcommerce.common.web.payment.processor.TransparentRedirectCreditCardFormProcessor
All Implemented Interfaces:
org.broadleafcommerce.presentation.dialect.BroadleafModelModifierProcessor, org.broadleafcommerce.presentation.dialect.BroadleafProcessor

@Component("blTransparentRedirectCreditCardFormProcessor") @ConditionalOnTemplating public class TransparentRedirectCreditCardFormProcessor extends org.broadleafcommerce.presentation.dialect.AbstractBroadleafModelModifierProcessor

The following processor will modify the declared Credit Card Form and call the Transparent Redirect Service of the configured payment gateway.

This processor will change the form's action URL and append any hidden input fields that are necessary to make the call. Certain gateway implementations accept configuration settings in order to generate the form. These configuration parameters can be passed into the module, by prefixing any configuration settings name with "config-" + attribute name = attribute value

Here is an example:


     <blc:transparent_credit_card_form action="#" method="POST"
         paymentRequestDTO="${requestDTO}"
         config-specificGatewayParam="value1"
         config-specificGatewayParam2="value2"
         config-specificGatewayParam3="value3">

         
         ...

     </blc:transparent_credit_form>
 

NOTE: please see PaymentGatewayFieldVariableExpression to modify the input "name" fields for a particular gateway

Author:
Elbert Bautista (elbertbautista)
  • Field Details

  • Constructor Details

    • TransparentRedirectCreditCardFormProcessor

      public TransparentRedirectCreditCardFormProcessor()
  • Method Details

    • getExtensionManager

      public TRCreditCardExtensionManager getExtensionManager()
    • setExtensionManager

      public void setExtensionManager(TRCreditCardExtensionManager extensionManager)
    • getName

      public String getName()
    • getPrecedence

      public int getPrecedence()
      Specified by:
      getPrecedence in interface org.broadleafcommerce.presentation.dialect.BroadleafProcessor
      Overrides:
      getPrecedence in class org.broadleafcommerce.presentation.dialect.AbstractBroadleafModelModifierProcessor
    • getInjectedModelAndTagAttributes

      public org.broadleafcommerce.presentation.model.BroadleafTemplateModelModifierDTO getInjectedModelAndTagAttributes(String rootTagName, Map<String,String> rootTagAttributes, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)
    • reprocessModel

      public boolean reprocessModel()
      Specified by:
      reprocessModel in interface org.broadleafcommerce.presentation.dialect.BroadleafModelModifierProcessor
      Overrides:
      reprocessModel in class org.broadleafcommerce.presentation.dialect.AbstractBroadleafModelModifierProcessor