public class PaymentMethodCheckoutStepController
extends AbstractCheckoutStepController
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.Map<java.lang.String,java.lang.String> |
CYBERSOURCE_SOP_CARD_TYPES |
| Constructor and Description |
|---|
PaymentMethodCheckoutStepController() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
add(Model model,
PaymentDetailsForm paymentDetailsForm,
BindingResult bindingResult) |
java.lang.String |
back(RedirectAttributes redirectAttributes) |
protected boolean |
checkPaymentSubscription(Model model,
PaymentDetailsForm paymentDetailsForm,
CCPaymentInfoData newPaymentSubscription) |
protected CardTypeData |
createCardTypeData(java.lang.String code,
java.lang.String name) |
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) |
protected void |
fillInPaymentData(PaymentDetailsForm paymentDetailsForm,
CCPaymentInfoData paymentInfoData) |
java.util.Collection<CountryData> |
getBillingCountries() |
java.util.Collection<CardTypeData> |
getCardTypes() |
protected CheckoutStep |
getCheckoutStep() |
java.util.List<SelectOption> |
getExpiryYears() |
java.util.List<SelectOption> |
getMonths() |
protected java.util.Collection<CardTypeData> |
getSopCardTypes() |
java.util.List<SelectOption> |
getStartYears() |
java.lang.String |
next(RedirectAttributes redirectAttributes) |
java.lang.String |
remove(java.lang.String paymentMethodId,
RedirectAttributes redirectAttributes) |
protected void |
setupAddPaymentPage(Model model) |
protected void |
setupSilentOrderPostPage(SopPaymentDetailsForm sopPaymentDetailsForm,
Model model) |
protected static final java.util.Map<java.lang.String,java.lang.String> CYBERSOURCE_SOP_CARD_TYPES
public java.util.Collection<CountryData> getBillingCountries()
public java.util.Collection<CardTypeData> getCardTypes()
public java.util.List<SelectOption> getMonths()
public java.util.List<SelectOption> getStartYears()
public java.util.List<SelectOption> getExpiryYears()
public java.lang.String enterStep(Model model,
RedirectAttributes redirectAttributes)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic java.lang.String add(Model model,
PaymentDetailsForm paymentDetailsForm,
BindingResult bindingResult)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionprotected boolean checkPaymentSubscription(Model model,
PaymentDetailsForm paymentDetailsForm,
CCPaymentInfoData newPaymentSubscription)
protected void fillInPaymentData(PaymentDetailsForm paymentDetailsForm,
CCPaymentInfoData paymentInfoData)
public java.lang.String remove(java.lang.String paymentMethodId,
RedirectAttributes redirectAttributes)
throws CMSItemNotFoundException
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)
protected CardTypeData createCardTypeData(java.lang.String code, java.lang.String name)
protected void setupAddPaymentPage(Model model)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionprotected void setupSilentOrderPostPage(SopPaymentDetailsForm sopPaymentDetailsForm,
Model model)
protected java.util.Collection<CardTypeData> getSopCardTypes()
protected CheckoutStep getCheckoutStep()
Copyright © 2018 SAP SE. All Rights Reserved.