public interface CsCardPaymentService
| Modifier and Type | Method and Description |
|---|---|
PaymentTransactionEntryModel |
authoriseCardPayment(AbstractOrderModel order,
CardInfo cardInfo,
double amount)
Authorise payment for the cart or order.
|
java.util.List<CreditCardPaymentInfoModel> |
getPreviousCreditCardPaymentInfos(UserModel user)
Get previously used payment infos for the specified user.
|
java.util.List<CreditCardType> |
getSupportedCardSchemes(AbstractOrderModel order)
Get the list of available card types for the specified cart or order.
|
void |
validate(AbstractOrderModel order,
CardInfo cardInfo,
double amount)
Validate the order, cardInfo and amount.
|
java.util.List<CreditCardType> getSupportedCardSchemes(AbstractOrderModel order)
order - the cart or orderjava.util.List<CreditCardPaymentInfoModel> getPreviousCreditCardPaymentInfos(UserModel user)
user - the userPaymentTransactionEntryModel authoriseCardPayment(AbstractOrderModel order, CardInfo cardInfo, double amount) throws PaymentException, ValidationException
order - the cart or ordercardInfo - the payment card dataamount - the amount to authorisePaymentException - thrown on error from the payment serviceValidationException - thrown if the card details are invalidvoid validate(AbstractOrderModel order, CardInfo cardInfo, double amount) throws ValidationException
order - the ordercardInfo - the cardInfoamount - the amountValidationException - thrown on error.Copyright © 2018 SAP SE. All Rights Reserved.