public interface CsCheckoutService
| Modifier and Type | Method and Description |
|---|---|
PaymentTransactionEntryModel |
authorisePayment(CartModel cart,
CardInfo cardInfo,
double amount)
Authorise payment for the cart or order.
|
PaymentTransactionEntryModel |
authorisePayment(CartModel cart,
CreditCardPaymentInfoModel storeCard,
java.math.BigDecimal amount,
java.lang.String cv2)
Authorise payment for the cart.
|
void |
canCreatePayments(CartModel cartModel)
Test if payment options can be created against the current cart.
|
OrderModel |
doCheckout(CartModel cart)
Place an order based on the cart supplied.
|
java.util.List<DeliveryModeModel> |
getAllDeliveryModes(CartModel cart)
Get all the supported delivery modes for the cart specified.
|
double |
getUnauthorizedTotal(CartModel cart)
Gets the unauthorized total for the cart specified.
|
java.util.List<PaymentTransactionModel> |
getValidPaymentTransactions(CartModel cart)
Get the list of payment transactions that have been created for the cart specified.
|
OrderModel doCheckout(CartModel cart) throws ValidationException
cart - the cartValidationException - thrown if the order cannot be placeddouble getUnauthorizedTotal(CartModel cart)
cart - the cartjava.util.List<PaymentTransactionModel> getValidPaymentTransactions(CartModel cart)
cart - the cartjava.util.List<DeliveryModeModel> getAllDeliveryModes(CartModel cart)
cart - the cartvoid canCreatePayments(CartModel cartModel) throws ValidationException
cartModel - The cartValidationException - Exception thrown if payments cannot be created at this time. The exception includes messages that
detail the errors.PaymentTransactionEntryModel authorisePayment(CartModel cart, CardInfo cardInfo, double amount) throws PaymentException, ValidationException
cart - the cartcardInfo - the payment card dataamount - the amount to authorisePaymentException - thrown on error from the payment serviceValidationException - thrown if the card details are invalidPaymentTransactionEntryModel authorisePayment(CartModel cart, CreditCardPaymentInfoModel storeCard, java.math.BigDecimal amount, java.lang.String cv2) throws PaymentException, ValidationException
cart - the cartstoreCard - the stored cardamount - the amount to authorisecv2 - the cv2 numberPaymentException - thrown on error from the payment serviceValidationException - thrown if the card details are invalidCopyright © 2018 SAP SE. All Rights Reserved.