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"); }And then in your application context:
{@code}
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.
@author Phillip Verheyden (phillipuniverse)
|
|