@Component(value="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:
...
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() |
org.broadleafcommerce.presentation.model.BroadleafTemplateModelModifierDTO |
getInjectedModelAndTagAttributes(String rootTagName,
Map<String,String> rootTagAttributes,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context) |
String |
getName() |
int |
getPrecedence() |
boolean |
reprocessModel() |
void |
setExtensionManager(TRCreditCardExtensionManager extensionManager) |
protected TRCreditCardExtensionManager extensionManager
public TransparentRedirectCreditCardFormProcessor()
public TRCreditCardExtensionManager getExtensionManager()
public void setExtensionManager(TRCreditCardExtensionManager extensionManager)
public String getName()
public int getPrecedence()
getPrecedence in interface org.broadleafcommerce.presentation.dialect.BroadleafProcessorgetPrecedence in class org.broadleafcommerce.presentation.dialect.AbstractBroadleafModelModifierProcessorpublic org.broadleafcommerce.presentation.model.BroadleafTemplateModelModifierDTO getInjectedModelAndTagAttributes(String rootTagName, Map<String,String> rootTagAttributes, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)
public boolean reprocessModel()
reprocessModel in interface org.broadleafcommerce.presentation.dialect.BroadleafModelModifierProcessorreprocessModel in class org.broadleafcommerce.presentation.dialect.AbstractBroadleafModelModifierProcessorCopyright © 2018. All rights reserved.