Class BroadleafManageCustomerPaymentsController
java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafAbstractController
org.broadleafcommerce.core.web.controller.account.BroadleafManageCustomerPaymentsController
public class BroadleafManageCustomerPaymentsController
extends org.broadleafcommerce.common.web.controller.BroadleafAbstractController
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 org.broadleafcommerce.profile.core.service.AddressServiceprotected org.broadleafcommerce.profile.core.service.CustomerAddressServiceprotected static Stringprotected org.broadleafcommerce.profile.core.service.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
protected org.broadleafcommerce.profile.core.service.CustomerPaymentService customerPaymentService -
customerAddressService
protected org.broadleafcommerce.profile.core.service.CustomerAddressService customerAddressService -
paymentInfoFormValidator
-
addressService
protected org.broadleafcommerce.profile.core.service.AddressService 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
-