public class DefaultSubscriptionCsCheckoutService extends DefaultCsCheckoutService
AbstractService.SerializableDTOmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
DefaultSubscriptionCsCheckoutService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addMessageForNegativeTotal(CartModel cart,
java.util.List<ResourceMessage> messages) |
protected void |
addMessageForNoCartEntries(CartModel cart,
java.util.List<ResourceMessage> messages) |
protected void |
addMessageForNoDeliveryAddress(CartModel cart,
java.util.List<ResourceMessage> messages) |
protected void |
addMessageForNoDeliveryMode(CartModel cart,
java.util.List<ResourceMessage> messages) |
protected void |
addMessageForNoPaymentAddress(CartModel cart,
java.util.List<ResourceMessage> messages) |
protected void |
addMessageForNoPaymentShippingAddress(CartModel cart,
java.util.List<ResourceMessage> messages) |
protected void |
addMessageForUnauthorizedTotal(CartModel cart,
java.util.List<ResourceMessage> messages) |
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.
|
protected void |
validateCartForCheckout(CartModel cart) |
protected void |
validateCartForCreatePayments(CartModel cart) |
canCreatePayments, cleanupCardNumber, createSubscription, doCheckout, getAllDeliveryModes, getCommerceCheckoutService, getCommonI18NService, getCsCardPaymentService, getCsOrderUnauthorizedTotalStrategy, getCustomerAccountService, getDeliveryService, getOrderCodeGenerator, getOrderFulfillmentProcessService, getOrderService, getPaymentDeliveryAddress, getPaymentProvider, getTransactionInfoService, getUnauthorizedTotal, getValidPaymentTransactions, isDeliveryAddressRequired, isDeliveryModeRequired, isPaymentAddressRequired, preAuth, setCommerceCheckoutService, setCommonI18NService, setCsCardPaymentService, setCsOrderUnauthorizedTotalStrategy, setCustomerAccountService, setDeliveryAddressRequired, setDeliveryModeRequired, setDeliveryService, setOrderCodeGenerator, setOrderFulfillmentProcessService, setOrderService, setPaymentAddressRequired, setTransactionInfoServicegetModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerafterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, setTenantScope, writeReplacepublic DefaultSubscriptionCsCheckoutService()
protected void validateCartForCreatePayments(CartModel cart) throws ValidationException
validateCartForCreatePayments in class DefaultCsCheckoutServiceValidationExceptionprotected void addMessageForNoCartEntries(CartModel cart, java.util.List<ResourceMessage> messages)
protected void addMessageForNegativeTotal(CartModel cart, java.util.List<ResourceMessage> messages)
protected void addMessageForNoPaymentShippingAddress(CartModel cart, java.util.List<ResourceMessage> messages)
protected void addMessageForNoDeliveryMode(CartModel cart, java.util.List<ResourceMessage> messages)
protected void validateCartForCheckout(CartModel cart) throws ValidationException
validateCartForCheckout in class DefaultCsCheckoutServiceValidationExceptionprotected void addMessageForNoDeliveryAddress(CartModel cart, java.util.List<ResourceMessage> messages)
protected void addMessageForNoPaymentAddress(CartModel cart, java.util.List<ResourceMessage> messages)
protected void addMessageForUnauthorizedTotal(CartModel cart, java.util.List<ResourceMessage> messages)
public PaymentTransactionEntryModel authorisePayment(CartModel cart, CardInfo cardInfo, double amount) throws PaymentException, ValidationException
CsCheckoutServiceauthorisePayment in interface CsCheckoutServiceauthorisePayment in class DefaultCsCheckoutServicecart - the cartcardInfo - the payment card dataamount - the amount to authorisePaymentException - thrown on error from the payment serviceValidationException - thrown if the card details are invalidpublic PaymentTransactionEntryModel authorisePayment(CartModel cart, CreditCardPaymentInfoModel storeCard, java.math.BigDecimal amount, java.lang.String cv2) throws PaymentException, ValidationException
CsCheckoutServiceauthorisePayment in interface CsCheckoutServiceauthorisePayment in class DefaultCsCheckoutServicecart - 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.