@Component(value="blTransparentRedirectCreditCardFormProcessor")
public class TransparentRedirectCreditCardFormProcessor
extends org.thymeleaf.processor.element.AbstractElementProcessor
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:
...
NOTE: please see PaymentGatewayFieldVariableExpression
to modify the input "name" fields for a particular gateway
org.broadleafcommerce.common.web.payment.expression.PaymentGatewayFieldVariableExpression},
TRCreditCardExtensionHandler},
AbstractTRCreditCardExtensionHandler}| Modifier and Type | Field and Description |
|---|---|
protected TRCreditCardExtensionManager |
extensionManager |
| Constructor and Description |
|---|
TransparentRedirectCreditCardFormProcessor() |
| Modifier and Type | Method and Description |
|---|---|
TRCreditCardExtensionManager |
getExtensionManager() |
int |
getPrecedence() |
protected org.thymeleaf.processor.ProcessorResult |
processElement(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element) |
void |
setExtensionManager(TRCreditCardExtensionManager extensionManager) |
doProcess, getMatcherprotected TRCreditCardExtensionManager extensionManager
public TransparentRedirectCreditCardFormProcessor()
public int getPrecedence()
getPrecedence in class org.thymeleaf.processor.AbstractProcessorprotected org.thymeleaf.processor.ProcessorResult processElement(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element)
processElement in class org.thymeleaf.processor.element.AbstractElementProcessorpublic TRCreditCardExtensionManager getExtensionManager()
public void setExtensionManager(TRCreditCardExtensionManager extensionManager)
Copyright © 2014. All Rights Reserved.