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.CommercePaymentAuthorizationStrategySAP Digital Payments specific implementation ofCommercePaymentAuthorizationStrategy
-
-
Constructor Summary
Constructors Constructor Description SapDigitalCommercePaymentAuthorizationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentTransactionEntryModelauthorizePaymentAmount(CommerceCheckoutParameter parameter)Authorize the payment amount while placing the order.java.util.List<de.hybris.platform.commerceservices.order.hook.AuthorizePaymentMethodHook>getAuthorizePaymentHooks()CisSapDigitalPaymentServicegetCisSapDigitalPaymentService()de.hybris.platform.servicelayer.config.ConfigurationServicegetConfigurationService()de.hybris.platform.servicelayer.i18n.I18NServicegetI18nService()SapDigitalPaymentAuthorizationServicegetSapDigitalPaymentAuthorizationService()SapDigitalPaymentConfigurationStrategygetSapDigitalPaymentConfigurationStrategy()voidsetAuthorizePaymentHooks(java.util.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
-
-
-
-
Method Detail
-
authorizePaymentAmount
public PaymentTransactionEntryModel authorizePaymentAmount(CommerceCheckoutParameter parameter)
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
public CisSapDigitalPaymentService getCisSapDigitalPaymentService()
- Returns:
- the cisSapDigitalPaymentService
-
setCisSapDigitalPaymentService
public void setCisSapDigitalPaymentService(CisSapDigitalPaymentService cisSapDigitalPaymentService)
- Parameters:
cisSapDigitalPaymentService- the cisSapDigitalPaymentService to set
-
getAuthorizePaymentHooks
public java.util.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(java.util.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
public SapDigitalPaymentConfigurationStrategy getSapDigitalPaymentConfigurationStrategy()
- Returns:
- the sapDigitalPaymentConfigurationStrategy
-
setSapDigitalPaymentConfigurationStrategy
public void setSapDigitalPaymentConfigurationStrategy(SapDigitalPaymentConfigurationStrategy sapDigitalPaymentConfigurationStrategy)
- Parameters:
sapDigitalPaymentConfigurationStrategy- the sapDigitalPaymentConfigurationStrategy to set
-
getSapDigitalPaymentAuthorizationService
public SapDigitalPaymentAuthorizationService getSapDigitalPaymentAuthorizationService()
-
setSapDigitalPaymentAuthorizationService
public void setSapDigitalPaymentAuthorizationService(SapDigitalPaymentAuthorizationService sapDigitalPaymentAuthorizationService)
-
-