@Component(value="blPaymentMethodVariableExpression") @ConditionalOnTemplating public class PaymentMethodVariableExpression extends Object implements org.broadleafcommerce.common.web.expression.BroadleafVariableExpression
| Modifier and Type | Field and Description |
|---|---|
protected CartStateService |
cartStateService |
protected OrderToPaymentRequestDTOService |
orderToPaymentRequestDTOService |
| Constructor and Description |
|---|
PaymentMethodVariableExpression() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getExpirationMonthOptions()
A helper method used to construct a list of Credit Card Expiration Months
Useful for expiration dropdown menus.
|
List<String> |
getExpirationYearOptions()
A helper method used to construct a list of Credit Card Expiration Years
Useful for expiration dropdown menus.
|
String |
getName() |
String |
getPaymentProcessingError()
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.PaymentRequestDTO |
getPaymentRequestDTO() |
protected boolean |
isNullOrder(Order cart) |
boolean |
orderContainsThirdPartyPayment() |
protected CartStateService cartStateService
protected OrderToPaymentRequestDTOService orderToPaymentRequestDTOService
public String getName()
getName in interface org.broadleafcommerce.common.web.expression.BroadleafVariableExpressionpublic org.broadleafcommerce.common.payment.dto.PaymentRequestDTO getPaymentRequestDTO()
public List<String> getExpirationMonthOptions()
public List<String> getExpirationYearOptions()
public boolean orderContainsThirdPartyPayment()
public String getPaymentProcessingError()
protected boolean isNullOrder(Order cart)
Copyright © 2018. All rights reserved.