Class BroadleafManageCustomerPaymentsController
java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafAbstractController
org.broadleafcommerce.core.web.controller.account.BroadleafManageCustomerPaymentsController
This is the page controller for adding, updating, and deleting a customer's saved payments.
- Author:
- Chris Kittrell (ckittrell), Jacob Mitash
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AddressServiceprotected CustomerAddressServiceprotected static Stringprotected CustomerPaymentServiceprotected static Stringprotected InitBinderServiceprotected AccountPaymentInfoFormValidatorprotected SavedPaymentService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCustomerPayment(jakarta.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, PaymentInfoForm paymentInfoForm, org.springframework.validation.BindingResult bindingResult) protected voidinitBinder(jakarta.servlet.http.HttpServletRequest request, org.springframework.web.bind.ServletRequestDataBinder binder) makeDefaultCustomerPayment(jakarta.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, Long customerPaymentId) removeCustomerPayment(jakarta.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, Long customerPaymentId) viewCustomerPayments(jakarta.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, PaymentInfoForm paymentInfoForm) Methods inherited from class org.broadleafcommerce.common.web.controller.BroadleafAbstractController
addDeepLink, getContextPath, isAjaxRequest, jsonResponse
-
Field Details
-
customerPaymentView
-
customerPaymentRedirect
-
savedPaymentService
-
customerPaymentService
-
customerAddressService
-
paymentInfoFormValidator
-
addressService
-
initBinderService
-
-
Constructor Details
-
BroadleafManageCustomerPaymentsController
public BroadleafManageCustomerPaymentsController()
-
-
Method Details
-
viewCustomerPayments
public String viewCustomerPayments(jakarta.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, PaymentInfoForm paymentInfoForm) -
addCustomerPayment
public String addCustomerPayment(jakarta.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, PaymentInfoForm paymentInfoForm, org.springframework.validation.BindingResult bindingResult) -
makeDefaultCustomerPayment
-
removeCustomerPayment
-
getCustomerPaymentView
-
getCustomerPaymentRedirect
-
initBinder
@InitBinder protected void initBinder(jakarta.servlet.http.HttpServletRequest request, org.springframework.web.bind.ServletRequestDataBinder binder) throws Exception - Throws:
Exception
-