@Component(value="blCreditCardTypesProcessor")
@ConditionalOnTemplating
public class CreditCardTypesProcessor
extends org.broadleafcommerce.presentation.dialect.AbstractBroadleafVariableModifierProcessor
The following processor will add any Payment Gateway specific Card Type 'codes' to the model if the gateway requires that a 'Card Type' (e.g. Visa, MasterCard, etc...) be sent along with the credit card number and expiry date.
This processor will put the key 'paymentGatewayCardTypes' on the model if there are any types available
Here is an example:
| Modifier and Type | Field and Description |
|---|---|
protected CreditCardTypesExtensionManager |
extensionManager |
protected static org.apache.commons.logging.Log |
LOG |
| Constructor and Description |
|---|
CreditCardTypesProcessor() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
int |
getPrecedence() |
Map<String,Object> |
populateModelVariables(String tagName,
Map<String,String> tagAttributes,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context) |
boolean |
useGlobalScope() |
protected static final org.apache.commons.logging.Log LOG
protected CreditCardTypesExtensionManager extensionManager
public String getName()
public int getPrecedence()
getPrecedence in interface org.broadleafcommerce.presentation.dialect.BroadleafProcessorgetPrecedence in class org.broadleafcommerce.presentation.dialect.AbstractBroadleafVariableModifierProcessorpublic boolean useGlobalScope()
useGlobalScope in interface org.broadleafcommerce.presentation.dialect.BroadleafVariableModifierProcessoruseGlobalScope in class org.broadleafcommerce.presentation.dialect.AbstractBroadleafVariableModifierProcessorCopyright © 2018. All rights reserved.