Class CreditCardTypesProcessor

java.lang.Object
org.broadleafcommerce.common.web.payment.processor.CreditCardTypesProcessor
All Implemented Interfaces:
BroadleafVariableExpression, CreditCardTypesExpression

@Component("blCreditCardTypesProcessor") @ConditionalOnTemplating public class CreditCardTypesProcessor extends Object implements CreditCardTypesExpression

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:


  <blc:credit_card_types >
      <div th:if="${paymentGatewayCardTypes != null}" class="form-group">
          
          <select th:name="${#paymentGatewayField.mapName('creditCard.creditCardType')}">
              <option th:each="entry : ${paymentGatewayCardTypes}" th:value="${entry.key}" th:text="${entry.value}">
          
      
</blc:credit_card_types>