Class SapDigitalCommercePaymentAuthorizationStrategy
- java.lang.Object
-
- de.hybris.platform.commerceservices.order.impl.DefaultCommercePaymentAuthorizationStrategy
-
- de.hybris.platform.cissapdigitalpayment.strategies.impl.SapDigitalCommercePaymentAuthorizationStrategy
-
- All Implemented Interfaces:
CommercePaymentAuthorizationStrategy
public class SapDigitalCommercePaymentAuthorizationStrategy extends DefaultCommercePaymentAuthorizationStrategy implements CommercePaymentAuthorizationStrategy
SAP Digital Payments specific implementation ofCommercePaymentAuthorizationStrategy
-
-
Constructor Summary
Constructors Constructor Description SapDigitalCommercePaymentAuthorizationStrategy()
-
Method Summary
-
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 interfaceCommercePaymentAuthorizationStrategy- Overrides:
authorizePaymentAmountin classDefaultCommercePaymentAuthorizationStrategy- Parameters:
parameter- -CommerceCheckoutParametercontaining the cart, payment provider, authorization amount.- Returns:
PaymentTransactionEntryModel
-
getI18nService
public I18NService getI18nService()
- Overrides:
getI18nServicein classDefaultCommercePaymentAuthorizationStrategy- Returns:
- the i18nService
-
setI18nService
public void setI18nService(I18NService i18nService)
- Overrides:
setI18nServicein classDefaultCommercePaymentAuthorizationStrategy- 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<AuthorizePaymentMethodHook> getAuthorizePaymentHooks()
- Overrides:
getAuthorizePaymentHooksin classDefaultCommercePaymentAuthorizationStrategy- Returns:
- the authorizePaymentHooks
-
setAuthorizePaymentHooks
public void setAuthorizePaymentHooks(java.util.List<AuthorizePaymentMethodHook> authorizePaymentHooks)
- Overrides:
setAuthorizePaymentHooksin classDefaultCommercePaymentAuthorizationStrategy- Parameters:
authorizePaymentHooks- the authorizePaymentHooks to set
-
getConfigurationService
public ConfigurationService getConfigurationService()
- Overrides:
getConfigurationServicein classDefaultCommercePaymentAuthorizationStrategy- Returns:
- the configurationService
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
- Overrides:
setConfigurationServicein classDefaultCommercePaymentAuthorizationStrategy- 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)
-
-