Class DefaultAdyenAdvancedFlowService
java.lang.Object
com.broadleafcommerce.adyen.service.DefaultAdyenAdvancedFlowService
- All Implemented Interfaces:
AdyenAdvancedFlowService
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultAdyenAdvancedFlowService
(AdyenProvider adyenProvider, AdyenConfigurationProperties configurationProperties, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected AdyenPaymentMethodsRequest
buildPaymentMethodsRequest
(PaymentMethodsRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected AdyenAmount
convertAmount
(javax.money.MonetaryAmount amount) protected AdyenProvider
protected Long
getAmountInMinorUnits
(@NonNull javax.money.MonetaryAmount amount) protected String
getApplicationId
(com.broadleafcommerce.data.tracking.core.context.ContextInfo context) getAvailablePaymentMethods
(PaymentMethodsRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Gathers a map of available payment methods that's used to inform what should be rendered by Adyen frontend components.protected AdyenConfigurationProperties
protected String
getTenantId
(com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected com.broadleafcommerce.common.extension.TypeFactory
-
Constructor Details
-
DefaultAdyenAdvancedFlowService
public DefaultAdyenAdvancedFlowService(AdyenProvider adyenProvider, AdyenConfigurationProperties configurationProperties, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
getAvailablePaymentMethods
public Map<String,Object> getAvailablePaymentMethods(@Nullable PaymentMethodsRequest request, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Description copied from interface:AdyenAdvancedFlowService
Gathers a map of available payment methods that's used to inform what should be rendered by Adyen frontend components.- Specified by:
getAvailablePaymentMethods
in interfaceAdyenAdvancedFlowService
- Parameters:
request
- Request payload describing the context in which the payment methods will be considered.context
- context information related to multitenancy- Returns:
- a map of available payment methods that's used to inform what should be rendered by Adyen frontend components.
-
buildPaymentMethodsRequest
protected AdyenPaymentMethodsRequest buildPaymentMethodsRequest(@Nullable PaymentMethodsRequest request, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
convertAmount
-
getAmountInMinorUnits
-
getApplicationId
@Nullable protected String getApplicationId(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
getTenantId
@Nullable protected String getTenantId(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
getAdyenProvider
-
getConfigurationProperties
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-