public class SapDigitalPaymentAndBillingMethodCheckoutStepController
extends AbstractCheckoutStepController
| Constructor and Description |
|---|
SapDigitalPaymentAndBillingMethodCheckoutStepController() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
addBillingAddress(Model model,
BillingAddressDetailsForm billingAddressDetailsForm,
BindingResult bindingResult)
Adds the billing address details to the cart
|
java.lang.String |
back(RedirectAttributes redirectAttributes) |
protected boolean |
checkPaymentSubscription(Model model,
PaymentDetailsForm paymentDetailsForm,
CCPaymentInfoData newPaymentSubscription) |
java.lang.String |
doSelectPaymentMethod(java.lang.String selectedPaymentMethodId)
This method gets called when the "Use These Payment Details" button is clicked.
|
java.lang.String |
enterStep(Model model,
RedirectAttributes redirectAttributes)
Display the billing and payment page
|
protected void |
fillInPaymentData(PaymentDetailsForm paymentDetailsForm,
CCPaymentInfoData paymentInfoData) |
AddressDataUtil |
getAddressDataUtil() |
BillingAddressValidator |
getBillingAddressValidator() |
protected CheckoutStep |
getCheckoutStep() |
CisSapDigitalPaymentFacade |
getCisSapDigitalPaymentFacade() |
SapDigitalPaymentFacade |
getSapDigitalPaymentFacade() |
UserFacade |
getUserFacade() |
java.lang.String |
next(RedirectAttributes redirectAttributes) |
java.lang.String |
registerNewCard(Model model,
RedirectAttributes redirectAttributes)
Register the card with SAP Digital payment
|
void |
setAddressDataUtil(AddressDataUtil addressDataUtil) |
void |
setBillingAddressValidator(BillingAddressValidator billingAddressValidator) |
void |
setCisSapDigitalPaymentFacade(CisSapDigitalPaymentFacade cisSapDigitalPaymentFacade) |
void |
setSapDigitalPaymentFacade(SapDigitalPaymentFacade sapDigitalPaymentFacade) |
protected void |
setupAddPaymentPage(Model model) |
protected void |
setupBillingAddressPage(Model model) |
void |
setUserFacade(UserFacade userFacade) |
public SapDigitalPaymentAndBillingMethodCheckoutStepController()
public java.lang.String registerNewCard(Model model,
RedirectAttributes redirectAttributes)
throws CMSItemNotFoundException
model - redirectAttributes - CMSItemNotFoundExceptionpublic java.lang.String doSelectPaymentMethod(java.lang.String selectedPaymentMethodId)
selectedPaymentMethodId - - the id of the payment method to use.public java.lang.String back(RedirectAttributes redirectAttributes)
public java.lang.String next(RedirectAttributes redirectAttributes)
public java.lang.String enterStep(Model model,
RedirectAttributes redirectAttributes)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic java.lang.String addBillingAddress(Model model,
BillingAddressDetailsForm billingAddressDetailsForm,
BindingResult bindingResult)
throws CMSItemNotFoundException
model - billingAddressDetailsForm - bindingResult - CMSItemNotFoundExceptionprotected void setupBillingAddressPage(Model model)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic BillingAddressValidator getBillingAddressValidator()
public void setBillingAddressValidator(BillingAddressValidator billingAddressValidator)
billingAddressValidator - the billingAddressValidator to setpublic UserFacade getUserFacade()
public void setUserFacade(UserFacade userFacade)
userFacade - the userFacade to setprotected boolean checkPaymentSubscription(Model model,
PaymentDetailsForm paymentDetailsForm,
CCPaymentInfoData newPaymentSubscription)
protected void fillInPaymentData(PaymentDetailsForm paymentDetailsForm,
CCPaymentInfoData paymentInfoData)
protected void setupAddPaymentPage(Model model)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionprotected CheckoutStep getCheckoutStep()
public CisSapDigitalPaymentFacade getCisSapDigitalPaymentFacade()
public void setCisSapDigitalPaymentFacade(CisSapDigitalPaymentFacade cisSapDigitalPaymentFacade)
cisSapDigitalPaymentFacade - the cisSapDigitalPaymentFacade to setpublic SapDigitalPaymentFacade getSapDigitalPaymentFacade()
public void setSapDigitalPaymentFacade(SapDigitalPaymentFacade sapDigitalPaymentFacade)
sapDigitalPaymentFacade - the sapDigitalPaymentFacade to setpublic AddressDataUtil getAddressDataUtil()
public void setAddressDataUtil(AddressDataUtil addressDataUtil)
addressDataUtil - the addressDataUtil to setCopyright © 2018 SAP SE. All Rights Reserved.