Class SapDigitalCommercePaymentAuthorizationStrategy
java.lang.Object
de.hybris.platform.commerceservices.order.impl.DefaultCommercePaymentAuthorizationStrategy
de.hybris.platform.cissapdigitalpayment.strategies.impl.SapDigitalCommercePaymentAuthorizationStrategy
- All Implemented Interfaces:
de.hybris.platform.commerceservices.order.CommercePaymentAuthorizationStrategy
public class SapDigitalCommercePaymentAuthorizationStrategy
extends de.hybris.platform.commerceservices.order.impl.DefaultCommercePaymentAuthorizationStrategy
implements de.hybris.platform.commerceservices.order.CommercePaymentAuthorizationStrategy
SAP Digital Payments specific implementation of
CommercePaymentAuthorizationStrategy-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorizePaymentAmount(CommerceCheckoutParameter parameter) Authorize the payment amount while placing the order.List<de.hybris.platform.commerceservices.order.hook.AuthorizePaymentMethodHook>de.hybris.platform.servicelayer.config.ConfigurationServicede.hybris.platform.servicelayer.i18n.I18NServicevoidsetAuthorizePaymentHooks(List<de.hybris.platform.commerceservices.order.hook.AuthorizePaymentMethodHook> authorizePaymentHooks) voidsetCisSapDigitalPaymentService(CisSapDigitalPaymentService cisSapDigitalPaymentService) voidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) voidsetI18nService(de.hybris.platform.servicelayer.i18n.I18NService i18nService) voidsetSapDigitalPaymentAuthorizationService(SapDigitalPaymentAuthorizationService sapDigitalPaymentAuthorizationService) voidsetSapDigitalPaymentConfigurationStrategy(SapDigitalPaymentConfigurationStrategy sapDigitalPaymentConfigurationStrategy) Methods inherited from class de.hybris.platform.commerceservices.order.impl.DefaultCommercePaymentAuthorizationStrategy
afterAuthorizePaymentAmount, beforeAuthorizePaymentAmount, getGenerateMerchantTransactionCodeStrategy, getModelService, getPaymentService, setGenerateMerchantTransactionCodeStrategy, setModelService, setPaymentService
-
Constructor Details
-
SapDigitalCommercePaymentAuthorizationStrategy
public SapDigitalCommercePaymentAuthorizationStrategy()
-
-
Method Details
-
authorizePaymentAmount
Authorize the payment amount while placing the order. Calls the SAP DIgital payment client to authorize the payment, Creates anPaymentTransactionEntryModelfrom the authorization result. If thePaymentTransactionModel's transaction status is ACCEPTED or REVIEW, set the payment and order information to thePaymentTransactionModel- Specified by:
authorizePaymentAmountin interfacede.hybris.platform.commerceservices.order.CommercePaymentAuthorizationStrategy- Overrides:
authorizePaymentAmountin classde.hybris.platform.commerceservices.order.impl.DefaultCommercePaymentAuthorizationStrategy- Parameters:
parameter- -CommerceCheckoutParametercontaining the cart, payment provider, authorization amount.- Returns:
PaymentTransactionEntryModel
-
getI18nService
public de.hybris.platform.servicelayer.i18n.I18NService getI18nService()- Overrides:
getI18nServicein classde.hybris.platform.commerceservices.order.impl.DefaultCommercePaymentAuthorizationStrategy- Returns:
- the i18nService
-
setI18nService
public void setI18nService(de.hybris.platform.servicelayer.i18n.I18NService i18nService) - Overrides:
setI18nServicein classde.hybris.platform.commerceservices.order.impl.DefaultCommercePaymentAuthorizationStrategy- Parameters:
i18nService- the i18nService to set
-
getCisSapDigitalPaymentService
- Returns:
- the cisSapDigitalPaymentService
-
setCisSapDigitalPaymentService
- Parameters:
cisSapDigitalPaymentService- the cisSapDigitalPaymentService to set
-
getAuthorizePaymentHooks
public List<de.hybris.platform.commerceservices.order.hook.AuthorizePaymentMethodHook> getAuthorizePaymentHooks()- Overrides:
getAuthorizePaymentHooksin classde.hybris.platform.commerceservices.order.impl.DefaultCommercePaymentAuthorizationStrategy- Returns:
- the authorizePaymentHooks
-
setAuthorizePaymentHooks
public void setAuthorizePaymentHooks(List<de.hybris.platform.commerceservices.order.hook.AuthorizePaymentMethodHook> authorizePaymentHooks) - Overrides:
setAuthorizePaymentHooksin classde.hybris.platform.commerceservices.order.impl.DefaultCommercePaymentAuthorizationStrategy- Parameters:
authorizePaymentHooks- the authorizePaymentHooks to set
-
getConfigurationService
public de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()- Overrides:
getConfigurationServicein classde.hybris.platform.commerceservices.order.impl.DefaultCommercePaymentAuthorizationStrategy- Returns:
- the configurationService
-
setConfigurationService
public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) - Overrides:
setConfigurationServicein classde.hybris.platform.commerceservices.order.impl.DefaultCommercePaymentAuthorizationStrategy- Parameters:
configurationService- the configurationService to set
-
getSapDigitalPaymentConfigurationStrategy
- Returns:
- the sapDigitalPaymentConfigurationStrategy
-
setSapDigitalPaymentConfigurationStrategy
public void setSapDigitalPaymentConfigurationStrategy(SapDigitalPaymentConfigurationStrategy sapDigitalPaymentConfigurationStrategy) - Parameters:
sapDigitalPaymentConfigurationStrategy- the sapDigitalPaymentConfigurationStrategy to set
-
getSapDigitalPaymentAuthorizationService
-
setSapDigitalPaymentAuthorizationService
public void setSapDigitalPaymentAuthorizationService(SapDigitalPaymentAuthorizationService sapDigitalPaymentAuthorizationService)
-