Class PaymentType
java.lang.Object
org.broadleafcommerce.common.payment.PaymentType
- All Implemented Interfaces:
Serializable,BroadleafEnumerationType
This represents types of payments that can be applied to an order. There might be multiple order payments with the same type on an order if the customer can pay with multiple cards (like 2 credit cards or 3 gift cards).
- Author:
- Phillip Verheyden (phillipuniverse)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PaymentTypestatic final PaymentTypestatic final PaymentTypestatic final PaymentTypestatic final PaymentTypestatic final PaymentTypestatic final PaymentTypestatic final PaymentTypestatic final PaymentTypestatic final PaymentTypestatic final PaymentTypestatic final PaymentTypestatic final PaymentTypeIntended for modules like PayPal Express Checkoutstatic final PaymentType -
Constructor Summary
ConstructorsConstructorDescriptionPaymentType(String type, String friendlyType) PaymentType(String type, String friendlyType, boolean isFinalPayment) PaymentType(String type, String friendlyType, boolean isFinalPayment, boolean isCreditCardType) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PaymentTypegetInstance(String type) booleangetType()inthashCode()booleanprotected void
-
Field Details
-
GIFT_CARD
-
CREDIT_CARD
-
BANK_ACCOUNT
-
CHECK
-
ELECTRONIC_CHECK
-
WIRE
-
MONEY_ORDER
-
CUSTOMER_CREDIT
-
COD
-
CUSTOMER_PAYMENT
-
PURCHASE_ORDER
-
APPLE_PAY
-
GOOGLE_PAY
-
THIRD_PARTY_ACCOUNT
Intended for modules like PayPal Express CheckoutIt is important to note that in this system an `UNCONFIRMED` `THIRD_PARTY_ACCOUNT` has a specific use case. The Order Payment amount can be variable. That means, when you confirm that `UNCONFIRMED` transaction, you can pass in a different amount than what was sent as the initial transaction amount. see (AdjustOrderPaymentsActivity)
Note that not all third party gateways support this feature described above. Make sure to the gateway does before assigning this type to your Order Payment.
-
-
Constructor Details
-
PaymentType
public PaymentType() -
PaymentType
-
PaymentType
-
PaymentType
-
-
Method Details
-
getInstance
-
getIsFinalPayment
public boolean getIsFinalPayment() -
isCreditCardType
public boolean isCreditCardType() -
getType
- Specified by:
getTypein interfaceBroadleafEnumerationType
-
setType
-
getFriendlyType
- Specified by:
getFriendlyTypein interfaceBroadleafEnumerationType
-
hashCode
public int hashCode() -
equals
-