Class DefaultAdyenAdvancedFlowService

java.lang.Object
com.broadleafcommerce.adyen.service.DefaultAdyenAdvancedFlowService
All Implemented Interfaces:
AdyenAdvancedFlowService

public class DefaultAdyenAdvancedFlowService extends Object implements AdyenAdvancedFlowService
  • 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 interface AdyenAdvancedFlowService
      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

      @Nullable protected AdyenAmount convertAmount(@Nullable javax.money.MonetaryAmount amount)
    • getAmountInMinorUnits

      protected Long getAmountInMinorUnits(@NonNull @NonNull javax.money.MonetaryAmount amount)
    • 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

      protected AdyenProvider getAdyenProvider()
    • getConfigurationProperties

      protected AdyenConfigurationProperties getConfigurationProperties()
    • getTypeFactory

      protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()