Class DefaultSapDigitalPaymentService

    • Constructor Detail

      • DefaultSapDigitalPaymentService

        public DefaultSapDigitalPaymentService()
    • Method Detail

      • getCardRegistrationUrl

        public java.lang.String getCardRegistrationUrl()
        This method will get the card registration URL from the SAP Digital payment
        Specified by:
        getCardRegistrationUrl in interface SapDigitalPaymentService
        Returns:
        registration URL
      • saveCreditCardPaymentDetailsToCart

        public boolean saveCreditCardPaymentDetailsToCart​(java.lang.String paymentInfoId,
                                                          java.util.Map<java.lang.String,​java.lang.Object> params)
        Saves the payment details to the cart.
        Specified by:
        saveCreditCardPaymentDetailsToCart in interface SapDigitalPaymentService
        Parameters:
        paymentInfoId - - payment info ID
        params - - Map
        Returns:
        Boolean
      • saveDeliveryAddressToPaymentInfoData

        protected void saveDeliveryAddressToPaymentInfoData​(CCPaymentInfoData paymentInfoData,
                                                            CartModel currentCart)
        Saves the delivery address to payment info
      • checkIfCurrentUserIsTheCartUser

        protected boolean checkIfCurrentUserIsTheCartUser​(UserModel currentUser,
                                                          CartModel currentCart)
      • isAnonymousCheckout

        protected boolean isAnonymousCheckout​(UserModel currentUser)
      • constructAuthorizationDateTime

        protected java.util.Date constructAuthorizationDateTime​(java.lang.String authorizationDateTime)
        Returns the authorization date and time. In case of errors, return a new Date
      • getSubscriptionId

        protected java.lang.String getSubscriptionId​(CisSapDigitalPaymentSource source)
        Check for the subscription ID from the authorization response. If empty,set an empty string
      • saveCCPaymentInfo

        protected void saveCCPaymentInfo​(DigitalPaymentsPollModel dpPollModel)
        Saves credit card details locally
        Parameters:
        dpPollModel - result from Digital Payments
      • getCisSapDigitalPaymentService

        public CisSapDigitalPaymentService getCisSapDigitalPaymentService()
        Returns:
        the cisSapDigitalPaymentService
      • setCisSapDigitalPaymentService

        public void setCisSapDigitalPaymentService​(CisSapDigitalPaymentService cisSapDigitalPaymentService)
        Parameters:
        cisSapDigitalPaymentService - the cisSapDigitalPaymentService to set
      • getModelService

        public de.hybris.platform.servicelayer.model.ModelService getModelService()
        Returns:
        the modelService
      • setModelService

        public void setModelService​(de.hybris.platform.servicelayer.model.ModelService modelService)
        Parameters:
        modelService - the modelService to set
      • getPaymentService

        public de.hybris.platform.payment.PaymentService getPaymentService()
        Returns:
        the paymentService
      • setPaymentService

        public void setPaymentService​(de.hybris.platform.payment.PaymentService paymentService)
        Parameters:
        paymentService - the paymentService to set
      • getCommonI18NService

        public de.hybris.platform.servicelayer.i18n.CommonI18NService getCommonI18NService()
        Returns:
        the commonI18NService
      • setCommonI18NService

        public void setCommonI18NService​(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService)
        Parameters:
        commonI18NService - the commonI18NService to set
      • getPaymentFormActionUrlStrategy

        public de.hybris.platform.acceleratorservices.payment.strategies.PaymentFormActionUrlStrategy getPaymentFormActionUrlStrategy()
        Returns:
        the paymentFormActionUrlStrategy
      • setPaymentFormActionUrlStrategy

        public void setPaymentFormActionUrlStrategy​(de.hybris.platform.acceleratorservices.payment.strategies.PaymentFormActionUrlStrategy paymentFormActionUrlStrategy)
        Parameters:
        paymentFormActionUrlStrategy - the paymentFormActionUrlStrategy to set
      • getBusinessProcessService

        public de.hybris.platform.processengine.BusinessProcessService getBusinessProcessService()
        Returns:
        the businessProcessService
      • setBusinessProcessService

        public void setBusinessProcessService​(de.hybris.platform.processengine.BusinessProcessService businessProcessService)
        Parameters:
        businessProcessService - the businessProcessService to set
      • getCartService

        public de.hybris.platform.order.CartService getCartService()
        Returns:
        the cartService
      • setCartService

        public void setCartService​(de.hybris.platform.order.CartService cartService)
        Parameters:
        cartService - the cartService to set
      • getCommerceCardTypeService

        public de.hybris.platform.commerceservices.order.CommerceCardTypeService getCommerceCardTypeService()
        Returns:
        the commerceCardTypeService
      • setCommerceCardTypeService

        public void setCommerceCardTypeService​(de.hybris.platform.commerceservices.order.CommerceCardTypeService commerceCardTypeService)
        Parameters:
        commerceCardTypeService - the commerceCardTypeService to set
      • getCustomerAccountService

        public de.hybris.platform.commerceservices.customer.CustomerAccountService getCustomerAccountService()
        Returns:
        the customerAccountService
      • setCustomerAccountService

        public void setCustomerAccountService​(de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService)
        Parameters:
        customerAccountService - the customerAccountService to set
      • getCommerceCheckoutService

        public de.hybris.platform.commerceservices.order.CommerceCheckoutService getCommerceCheckoutService()
        Returns:
        the commerceCheckoutService
      • setCommerceCheckoutService

        public void setCommerceCheckoutService​(de.hybris.platform.commerceservices.order.CommerceCheckoutService commerceCheckoutService)
        Parameters:
        commerceCheckoutService - the commerceCheckoutService to set
      • getAddressConverter

        public de.hybris.platform.servicelayer.dto.converter.Converter<AddressModel,​AddressData> getAddressConverter()
        Returns:
        the addressConverter
      • setAddressConverter

        public void setAddressConverter​(de.hybris.platform.servicelayer.dto.converter.Converter<AddressModel,​AddressData> addressConverter)
        Parameters:
        addressConverter - the addressConverter to set
      • getUserService

        public de.hybris.platform.servicelayer.user.UserService getUserService()
        Returns:
        the userService
      • setUserService

        public void setUserService​(de.hybris.platform.servicelayer.user.UserService userService)
        Parameters:
        userService - the userService to set
      • getBaseStoreService

        public de.hybris.platform.store.services.BaseStoreService getBaseStoreService()
        Returns:
        the baseStoreService
      • setBaseStoreService

        public void setBaseStoreService​(de.hybris.platform.store.services.BaseStoreService baseStoreService)
        Parameters:
        baseStoreService - the baseStoreService to set
      • getCalculationService

        public de.hybris.platform.order.CalculationService getCalculationService()
        Returns:
        the calculationService
      • setCalculationService

        public void setCalculationService​(de.hybris.platform.order.CalculationService calculationService)
        Parameters:
        calculationService - the calculationService to set
      • getSapDigiPayAuthTranResult

        public java.util.Map<java.lang.String,​java.lang.String> getSapDigiPayAuthTranResult()
        Returns:
        the sapDigiPayAuthTranResult
      • setSapDigitalPaymentConfigurationStrategy

        public void setSapDigitalPaymentConfigurationStrategy​(SapDigitalPaymentConfigurationStrategy sapDigitalPaymentConfigurationStrategy)
        Parameters:
        sapDigitalPaymentConfigurationStrategy - the sapDigitalPaymentConfigurationStrategy to set
      • setSapDigiPayAuthTranResult

        public void setSapDigiPayAuthTranResult​(java.util.Map<java.lang.String,​java.lang.String> sapDigiPayAuthTranResult)
        Parameters:
        sapDigiPayAuthTranResult - the sapDigiPayAuthTranResult to set
      • getEnumerationService

        public de.hybris.platform.enumeration.EnumerationService getEnumerationService()
      • setEnumerationService

        public void setEnumerationService​(de.hybris.platform.enumeration.EnumerationService enumerationService)