Class BLCPaymentMethodUtils

java.lang.Object
org.broadleafcommerce.common.util.BLCPaymentMethodUtils

public class BLCPaymentMethodUtils extends Object
Convenience class to payment method data for front-end display.
Author:
Chris Kittrell (ckittrell)
  • Constructor Details

    • BLCPaymentMethodUtils

      public BLCPaymentMethodUtils()
  • Method Details

    • getExpirationMonthOptions

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