Class DefaultAdyenPaymentModificationService

java.lang.Object
com.broadleafcommerce.adyen.service.DefaultAdyenPaymentModificationService
All Implemented Interfaces:
AdyenPaymentModificationService, com.broadleafcommerce.paymentgateway.service.PaymentGatewayPaymentModificationService, com.broadleafcommerce.paymentgateway.service.PaymentGatewayTypeAware

public class DefaultAdyenPaymentModificationService extends Object implements AdyenPaymentModificationService
Author:
Dima Myroniuk (dmyroniuk)
  • Constructor Details

    • DefaultAdyenPaymentModificationService

      public DefaultAdyenPaymentModificationService(AdyenPayPalExpressCheckoutService payPalExpressCheckoutService, com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details

    • modifyPaymentMethodProperties

      public Map<String,String> modifyPaymentMethodProperties(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentInfo paymentInfo, @Nullable String applicationId, @Nullable String tenantId)
      Specified by:
      modifyPaymentMethodProperties in interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayPaymentModificationService
    • updateGatewayPayment

      public Map<String,Object> updateGatewayPayment(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.UpdateGatewayPaymentRequest request, @Nullable String applicationId, @Nullable String tenantId)
      Specified by:
      updateGatewayPayment in interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayPaymentModificationService
    • populateIpAddress

      protected Map<String,String> populateIpAddress(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentInfo paymentInfo, @NonNull @NonNull Map<String,String> paymentMethodProperties)
    • getIpAddress

      @Nullable protected String getIpAddress(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentInfo paymentInfo)
    • buildAdyenPayPalExpressCheckoutRequest

      protected AdyenPayPalExpressCheckoutRequest buildAdyenPayPalExpressCheckoutRequest(com.broadleafcommerce.paymentgateway.domain.PaymentInfo paymentInfo, @Nullable String applicationId, @Nullable String tenantId)
    • convertAmount

      protected AdyenAmount convertAmount(@NonNull @NonNull javax.money.MonetaryAmount amount)
    • buildUpdateExpressPayPalOrderRequest

      protected UpdateExpressPayPalOrderRequest buildUpdateExpressPayPalOrderRequest(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.UpdateGatewayPaymentRequest request)
    • setTaxTotal

      protected void setTaxTotal(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentInfo paymentInfo, @NonNull @NonNull UpdateExpressPayPalOrderRequest request)
    • getPaymentData

      @Nullable protected String getPaymentData(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.UpdateGatewayPaymentRequest request)
    • getDeliveryMethods

      protected List<AdyenDeliveryMethod> getDeliveryMethods(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.UpdateGatewayPaymentRequest request)
    • readValue

      protected <T> T readValue(String fromValue, com.fasterxml.jackson.core.type.TypeReference<T> toValueTypeRef) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • convertValue

      protected <T> T convertValue(Object fromValue, com.fasterxml.jackson.core.type.TypeReference<T> toValueTypeRef)
    • serializeValue

      protected String serializeValue(@Nullable Object fromValue)
    • getCallbackUrlKeys

      public Set<String> getCallbackUrlKeys()
      Specified by:
      getCallbackUrlKeys in interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayPaymentModificationService
    • getGatewayType

      public String getGatewayType()
      Specified by:
      getGatewayType in interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayTypeAware
    • getPayPalExpressCheckoutService

      protected AdyenPayPalExpressCheckoutService getPayPalExpressCheckoutService()
    • getTypeFactory

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

      protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()