Class PaymentGatewayType

java.lang.Object
org.broadleafcommerce.common.payment.PaymentGatewayType
All Implemented Interfaces:
Serializable, BroadleafEnumerationType

public class PaymentGatewayType extends Object implements Serializable, BroadleafEnumerationType

This is designed such that individual payment modules will extend this to add their own type. For instance, while this class does not explicitly have a 'Braintree' payment gateway type, the Braintree module will provide an extension to this class and add itself in the list of types. For instance:

 {@code
 public class BraintreeGatewayType extends PaymentGatewayType {
     public static final BRAINTREE = new PaymentGatewayType("BRAINTREE", "Braintree");
 }
 </pre>
 <p>
 And then in your application context:
 <pre>
 {@code
 <bean class="org.broadleafcommerce.vendor.braintree.BraintreeGatewayType" />
 }
 </pre>

 <p>This is especially useful in auditing scenarios so that, at a glance, you can easily see what gateway a particular
 order payment was processed by.</p>

 @author Phillip Verheyden (phillipuniverse)
See Also: