Class PaymentGatewayType
java.lang.Object
org.broadleafcommerce.common.payment.PaymentGatewayType
- All Implemented Interfaces:
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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PaymentGatewayTypegetInstance(String type) getType()inthashCode()protected void
-
Field Details
-
TEMPORARY
-
PASSTHROUGH
-
-
Constructor Details
-
PaymentGatewayType
public PaymentGatewayType() -
PaymentGatewayType
-
-
Method Details
-
getInstance
-
getType
- Specified by:
getTypein interfaceBroadleafEnumerationType
-
setType
-
getFriendlyType
- Specified by:
getFriendlyTypein interfaceBroadleafEnumerationType
-
hashCode
public int hashCode() -
equals
-