public class DefaultSapDigitalPaymentService extends java.lang.Object implements SapDigitalPaymentService
SapDigitalPaymentService| Constructor and Description |
|---|
DefaultSapDigitalPaymentService() |
public PaymentTransactionEntryModel authorize(java.lang.String merchantTransactionCode, java.lang.String paymentProvider, AddressModel deliveryAddress, CisSapDigitalPaymentAuthorizationResult dpAuthResult)
authorize in interface SapDigitalPaymentServicemerchantTransactionCode - - merchant transaction codepaymentProvider - - payment providerdeliveryAddress - - delivery address captured during the checkoutdpAuthResult - - SAP Digital payments authorization resultpublic PaymentTransactionEntryModel capture(PaymentTransactionModel transaction) throws SapDigitalPaymentCaptureException
capture in interface SapDigitalPaymentServicetransaction - - payment transaction associated with the orderSapDigitalPaymentCaptureExceptionpublic PaymentTransactionEntryModel refund(PaymentTransactionModel transaction, java.math.BigDecimal amountToRefund) throws SapDigitalPaymentRefundException
refund in interface SapDigitalPaymentServicetransaction - - payment transaction associated with the return request's order.amountToRefund - - amount to be refundedSapDigitalPaymentRefundException - - Payment refund exceptionpublic java.lang.String getCardRegistrationUrl()
getCardRegistrationUrl in interface SapDigitalPaymentServicepublic void createPollRegisteredCardProcess(java.lang.String sessionId)
SapDigitPayPollCardProcessModel and triggers the processcreatePollRegisteredCardProcess in interface SapDigitalPaymentServicesessionId - - sessionId w.r.t registered cardpublic CreditCardPaymentInfoModel createPaymentSubscription(CCPaymentInfoData paymentInfoData, java.util.Map<java.lang.String,java.lang.Object> params)
CreditCardPaymentInfoModelcreatePaymentSubscription in interface SapDigitalPaymentServicepaymentInfoData - - credit card payment info dataparams - - pass the parameters like cart, user, payment provider etcCreditCardPaymentInfoModelpublic boolean saveCreditCardPaymentDetailsToCart(java.lang.String paymentInfoId,
java.util.Map<java.lang.String,java.lang.Object> params)
saveCreditCardPaymentDetailsToCart in interface SapDigitalPaymentServicepaymentInfoId - - payment info IDparams - - MapBooleanprotected void saveDeliveryAddressToPaymentInfoData(CCPaymentInfoData paymentInfoData, CartModel currentCart)
protected CardInfo populateCardInfo(CCPaymentInfoData paymentInfoData)
populateCardInfoprotected boolean checkIfCurrentUserIsTheCartUser(UserModel currentUser, CartModel currentCart)
protected boolean isAnonymousCheckout(UserModel currentUser)
protected java.lang.String getTransactionStatus(CisSapDigitalPaymentTransactionResult transactionResult)
transactionResult - - Stringprotected java.util.Date constructAuthorizationDateTime(java.lang.String authorizationDateTime)
Dateprotected java.lang.String getSubscriptionId(CisSapDigitalPaymentSource source)
public boolean isSapDigitalPaymentTransaction(PaymentTransactionModel txn)
isSapDigitalPaymentTransaction in interface SapDigitalPaymentServicetxn - - PaymentTransactionModelBooleanpublic CisSapDigitalPaymentService getCisSapDigitalPaymentService()
public void setCisSapDigitalPaymentService(CisSapDigitalPaymentService cisSapDigitalPaymentService)
cisSapDigitalPaymentService - the cisSapDigitalPaymentService to setpublic ModelService getModelService()
public void setModelService(ModelService modelService)
modelService - the modelService to setpublic PaymentService getPaymentService()
public void setPaymentService(PaymentService paymentService)
paymentService - the paymentService to setpublic CommonI18NService getCommonI18NService()
public void setCommonI18NService(CommonI18NService commonI18NService)
commonI18NService - the commonI18NService to setpublic PaymentFormActionUrlStrategy getPaymentFormActionUrlStrategy()
public void setPaymentFormActionUrlStrategy(PaymentFormActionUrlStrategy paymentFormActionUrlStrategy)
paymentFormActionUrlStrategy - the paymentFormActionUrlStrategy to setpublic BusinessProcessService getBusinessProcessService()
public void setBusinessProcessService(BusinessProcessService businessProcessService)
businessProcessService - the businessProcessService to setpublic CartService getCartService()
public void setCartService(CartService cartService)
cartService - the cartService to setpublic CommerceCardTypeService getCommerceCardTypeService()
public void setCommerceCardTypeService(CommerceCardTypeService commerceCardTypeService)
commerceCardTypeService - the commerceCardTypeService to setpublic CustomerAccountService getCustomerAccountService()
public void setCustomerAccountService(CustomerAccountService customerAccountService)
customerAccountService - the customerAccountService to setpublic CommerceCheckoutService getCommerceCheckoutService()
public void setCommerceCheckoutService(CommerceCheckoutService commerceCheckoutService)
commerceCheckoutService - the commerceCheckoutService to setpublic Converter<AddressModel,AddressData> getAddressConverter()
public void setAddressConverter(Converter<AddressModel,AddressData> addressConverter)
addressConverter - the addressConverter to setpublic UserService getUserService()
public void setUserService(UserService userService)
userService - the userService to setpublic BaseStoreService getBaseStoreService()
public void setBaseStoreService(BaseStoreService baseStoreService)
baseStoreService - the baseStoreService to setpublic CalculationService getCalculationService()
public void setCalculationService(CalculationService calculationService)
calculationService - the calculationService to setpublic java.util.Map<java.lang.String,java.lang.String> getSapDigiPayAuthTranResult()
public SapDigitalPaymentConfigurationStrategy getSapDigitalPaymentConfigurationStrategy()
public void setSapDigitalPaymentConfigurationStrategy(SapDigitalPaymentConfigurationStrategy sapDigitalPaymentConfigurationStrategy)
sapDigitalPaymentConfigurationStrategy - the sapDigitalPaymentConfigurationStrategy to setpublic void setSapDigiPayAuthTranResult(java.util.Map<java.lang.String,java.lang.String> sapDigiPayAuthTranResult)
sapDigiPayAuthTranResult - the sapDigiPayAuthTranResult to setCopyright © 2018 SAP SE. All Rights Reserved.