Class PaymentMethodVariableExpression
java.lang.Object
org.broadleafcommerce.core.web.expression.checkout.PaymentMethodVariableExpression
- All Implemented Interfaces:
org.broadleafcommerce.common.web.expression.BroadleafVariableExpression
@Component("blPaymentMethodVariableExpression")
@ConditionalOnTemplating
public class PaymentMethodVariableExpression
extends Object
implements org.broadleafcommerce.common.web.expression.BroadleafVariableExpression
- Author:
- Chris Kittrell (ckittrell)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CartStateServiceprotected org.broadleafcommerce.core.payment.service.OrderPaymentServiceprotected org.broadleafcommerce.core.payment.service.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.org.broadleafcommerce.common.payment.dto.PaymentRequestDTOprotected booleanisNullOrder(org.broadleafcommerce.core.order.domain.Order cart) booleanorderContainsCODPayment(org.broadleafcommerce.core.order.domain.Order order) booleanorderContainsCreditCardPayment(org.broadleafcommerce.core.order.domain.Order order) booleanorderContainsPaymentOfType(org.broadleafcommerce.core.order.domain.Order order, org.broadleafcommerce.common.payment.PaymentType paymentType) booleanorderContainsThirdPartyPayment(org.broadleafcommerce.core.order.domain.Order order)
-
Field Details
-
cartStateService
-
orderPaymentService
protected org.broadleafcommerce.core.payment.service.OrderPaymentService orderPaymentService -
orderToPaymentRequestDTOService
protected org.broadleafcommerce.core.payment.service.OrderToPaymentRequestDTOService orderToPaymentRequestDTOService
-
-
Constructor Details
-
PaymentMethodVariableExpression
public PaymentMethodVariableExpression()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.broadleafcommerce.common.web.expression.BroadleafVariableExpression
-
getPaymentRequestDTO
public org.broadleafcommerce.common.payment.dto.PaymentRequestDTO getPaymentRequestDTO() -
isNullOrder
protected boolean isNullOrder(org.broadleafcommerce.core.order.domain.Order cart) -
cartContainsThirdPartyPayment
public boolean cartContainsThirdPartyPayment() -
cartContainsCreditCardPayment
public boolean cartContainsCreditCardPayment() -
cartContainsTemporaryCreditCard
public boolean cartContainsTemporaryCreditCard() -
orderContainsCODPayment
public boolean orderContainsCODPayment(org.broadleafcommerce.core.order.domain.Order order) -
orderContainsCreditCardPayment
public boolean orderContainsCreditCardPayment(org.broadleafcommerce.core.order.domain.Order order) -
orderContainsThirdPartyPayment
public boolean orderContainsThirdPartyPayment(org.broadleafcommerce.core.order.domain.Order order) -
orderContainsPaymentOfType
public boolean orderContainsPaymentOfType(org.broadleafcommerce.core.order.domain.Order order, org.broadleafcommerce.common.payment.PaymentType paymentType) -
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.
-