Class BroadleafPaymentInfoController


public class BroadleafPaymentInfoController extends AbstractCheckoutController
Author:
Chris Kittrell (ckittrell)
  • Field Details

  • Constructor Details

    • BroadleafPaymentInfoController

      public BroadleafPaymentInfoController()
  • Method Details

    • savePaymentInfo

      public String savePaymentInfo(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, PaymentInfoForm paymentForm, org.springframework.validation.BindingResult result) throws PricingException, ServiceException
      Processes the request to save an OrderPayment based on an existing or new CustomerPayment.

      Note: this default Broadleaf implementation will create a CustomerPayment if one does not exist, and copy it's data to a new OrderPayment.

      Parameters:
      request -
      response -
      model -
      paymentForm -
      Returns:
      the return path
      Throws:
      ServiceException
      PricingException
    • saveBillingAddress

      public String saveBillingAddress(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, PaymentInfoForm paymentForm, org.springframework.validation.BindingResult result) throws PricingException, ServiceException
      Processes the request to save a billing address.

      Note: this default Broadleaf implementation will create an OrderPayment of type CREDIT_CARD and save the passed in billing address

      Parameters:
      request -
      response -
      model -
      paymentForm -
      Returns:
      the return path
      Throws:
      ServiceException
      PricingException
    • preProcessBillingAddress

      protected void preProcessBillingAddress(PaymentInfoForm paymentForm, Order cart)
    • copyShippingAddressToBillingAddress

      protected void copyShippingAddressToBillingAddress(Order order, PaymentInfoForm paymentInfoForm)
      This method will copy the shipping address of the first fulfillment group on the order to the billing address on the PaymentInfoForm that is passed in.
    • copyCustomerPaymentAddressToBillingAddress

      protected void copyCustomerPaymentAddressToBillingAddress(PaymentInfoForm paymentForm)
    • addTemporaryOrderPayment

      protected void addTemporaryOrderPayment(PaymentInfoForm paymentForm, Order cart)