public interface CardPaymentController extends WidgetController
| Modifier and Type | Method and Description |
|---|---|
java.util.List<CreditCardType> |
getAvailableCartTypes()
The list of available card types
|
TypedObject |
getCurrency()
Get the payment currency
|
CustomerController |
getCustomerController()
Get the customer controller
|
TypedObject |
getDefaultPaymentAddress()
Get the default payment address
|
java.util.List<TypedObject> |
getPreviousPaymentInfos()
Get the list of available payment infos that can be used as templates for the card payment form.
|
double |
getSuggestedAmountForPaymentOption()
Get the suggested payment amount
|
boolean |
processPayment(ObjectValueContainer paymentOptionValueContainer)
Process the card payment
|
addCockpitEventAcceptor, dispatchEvent, removeCockpitEventAcceptor, setCockpitEventAcceptorsjava.util.List<TypedObject> getPreviousPaymentInfos()
double getSuggestedAmountForPaymentOption()
TypedObject getCurrency()
TypedObject getDefaultPaymentAddress()
java.util.List<CreditCardType> getAvailableCartTypes()
boolean processPayment(ObjectValueContainer paymentOptionValueContainer) throws PaymentException, ValidationException
paymentOptionValueContainer - the payment dataPaymentException - thrown when payment service failsValidationException - thrown if the payment data is invalidCustomerController getCustomerController()
Copyright © 2018 SAP SE. All Rights Reserved.