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 Details

    • cartStateService

      protected CartStateService 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

      public String getName()
      Specified by:
      getName in interface org.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

      public List<String> 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

      public List<String> 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

      public String getCreditCardTypeFromCart()
    • getCreditCardLastFourFromCart

      public String getCreditCardLastFourFromCart()
    • getCreditCardExpDateFromCart

      public String getCreditCardExpDateFromCart()
    • getCartOrderPaymentProperty

      protected String getCartOrderPaymentProperty(String propertyName)
    • getPaymentProcessingError

      public 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.