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 Summary
FieldsFields inherited from interface org.broadleafcommerce.presentation.dialect.BroadleafProcessor
DEFAULT_PRECEDENCE, DEFAULT_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.broadleafcommerce.presentation.model.BroadleafTemplateModelModifierDTOgetInjectedModelAndTagAttributes(String rootTagName, Map<String, String> rootTagAttributes, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context) getName()intbooleanvoidsetExtensionManager(TRCreditCardExtensionManager extensionManager) Methods inherited from class org.broadleafcommerce.presentation.dialect.AbstractBroadleafModelModifierProcessor
getPrefix, useSingleQuotes
-
Field Details
-
extensionManager
-
-
Constructor Details
-
TransparentRedirectCreditCardFormProcessor
public TransparentRedirectCreditCardFormProcessor()
-
-
Method Details
-
getExtensionManager
-
setExtensionManager
-
getName
-
getPrecedence
public int getPrecedence()- Specified by:
getPrecedencein interfaceorg.broadleafcommerce.presentation.dialect.BroadleafProcessor- Overrides:
getPrecedencein classorg.broadleafcommerce.presentation.dialect.AbstractBroadleafModelModifierProcessor
-
getInjectedModelAndTagAttributes
-
reprocessModel
public boolean reprocessModel()- Specified by:
reprocessModelin interfaceorg.broadleafcommerce.presentation.dialect.BroadleafModelModifierProcessor- Overrides:
reprocessModelin classorg.broadleafcommerce.presentation.dialect.AbstractBroadleafModelModifierProcessor
-