public interface CheckoutController extends WidgetController
| Modifier and Type | Method and Description |
|---|---|
void |
canCreatePayments()
Test if payment options can be created against the current cart.
|
BasketController |
getBasketController()
Get the basket controller
|
java.util.Date |
getFirstAvailableNamedDeliveryDate(TypedObject cartEntry)
Get the first available named delivery date for the
|
double |
getSuggestedAmountForPaymentOption()
Get the outstanding payment amount.
|
java.util.List<TypedObject> |
getTokenisedCreditCards()
Gets the list of tokenised credit cards of this customer
|
java.util.List<TypedObject> |
getValidPaymentTransactions()
Get the valid payment transactions for the cart
|
boolean |
needPaymentOption()
Does the cart require further payment.
|
TypedObject |
placeOrder()
Place the order.
|
boolean |
processPayment(TypedObject tokenisedCreditCard,
java.math.BigDecimal amount,
java.lang.String cv2) |
boolean |
setNamedDeliveryDate(TypedObject cartEntry,
java.util.Date date)
Set the named delivery date on a cart entry
|
boolean |
splitCartEntry(TypedObject cartEntry)
Split a cart entry into 2 cart entries.
|
addCockpitEventAcceptor, dispatchEvent, removeCockpitEventAcceptor, setCockpitEventAcceptorsTypedObject placeOrder() throws ValidationException
ValidationException - thrown if the order fails validationBasketController getBasketController()
boolean splitCartEntry(TypedObject cartEntry) throws InvalidCartException
cartEntry - the cart entryInvalidCartException - thrown on errorjava.util.Date getFirstAvailableNamedDeliveryDate(TypedObject cartEntry)
cartEntry - the cart entryboolean setNamedDeliveryDate(TypedObject cartEntry, java.util.Date date)
cartEntry - the cart entrydate - the named delivery datedouble getSuggestedAmountForPaymentOption()
boolean needPaymentOption()
java.util.List<TypedObject> getValidPaymentTransactions()
void canCreatePayments()
throws ValidationException
ValidationException - Exception thrown if payments cannot be created at this time. The exception includes messages that
detail the errors.java.util.List<TypedObject> getTokenisedCreditCards()
boolean processPayment(TypedObject tokenisedCreditCard, java.math.BigDecimal amount, java.lang.String cv2) throws PaymentException, ValidationException
tokenisedCreditCard - the stored cardamount - the amount to authorisecv2 - the cv2 numberPaymentException - thrown when payment service failsValidationException - thrown if the payment data is invalidCopyright © 2018 SAP SE. All Rights Reserved.