Class PaymentMethodVariableExpression
java.lang.Object
org.broadleafcommerce.core.web.expression.checkout.PaymentMethodVariableExpression
- All Implemented Interfaces:
BroadleafVariableExpression
@Component("blPaymentMethodVariableExpression")
@ConditionalOnTemplating
public class PaymentMethodVariableExpression
extends Object
implements BroadleafVariableExpression
- Author:
- Chris Kittrell (ckittrell)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CartStateServiceprotected OrderPaymentServiceprotected OrderToPaymentRequestDTOService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanprotected StringgetCartOrderPaymentProperty(String propertyName) A helper method used to construct a list of Credit Card Expiration Months Useful for expiration dropdown menus.A helper method used to construct a list of Credit Card Expiration Years Useful for expiration dropdown menus.getName()This method is responsible for gathering any Payment Processing Errors that may have been stored as a Redirect Attribute when attempting to checkout.protected booleanisNullOrder(Order cart) booleanorderContainsCODPayment(Order order) booleanbooleanorderContainsPaymentOfType(Order order, PaymentType paymentType) boolean
-
Field Details
-
cartStateService
-
orderPaymentService
-
orderToPaymentRequestDTOService
-
-
Constructor Details
-
PaymentMethodVariableExpression
public PaymentMethodVariableExpression()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceBroadleafVariableExpression
-
getPaymentRequestDTO
-
isNullOrder
-
cartContainsThirdPartyPayment
public boolean cartContainsThirdPartyPayment() -
cartContainsCreditCardPayment
public boolean cartContainsCreditCardPayment() -
cartContainsTemporaryCreditCard
public boolean cartContainsTemporaryCreditCard() -
orderContainsCODPayment
-
orderContainsCreditCardPayment
-
orderContainsThirdPartyPayment
-
orderContainsPaymentOfType
-
getExpirationMonthOptions
A helper method used to construct a list of Credit Card Expiration Months Useful for expiration dropdown menus. Will use locale to determine language if a locale is available.- Returns:
- List containing expiration months of the form "01 - January"
-
getExpirationYearOptions
A helper method used to construct a list of Credit Card Expiration Years Useful for expiration dropdown menus.- Returns:
- List of the next ten years starting with the current year.
-
getCreditCardTypeFromCart
-
getCreditCardLastFourFromCart
-
getCreditCardExpDateFromCart
-
getCartOrderPaymentProperty
-
getPaymentProcessingError
This method is responsible for gathering any Payment Processing Errors that may have been stored as a Redirect Attribute when attempting to checkout.
-