Class CheckoutComPaymentModificationService

java.lang.Object
com.broadleafcommerce.payment.service.gateway.CheckoutComPaymentModificationService
All Implemented Interfaces:
com.broadleafcommerce.paymentgateway.service.PaymentGatewayPaymentModificationService, com.broadleafcommerce.paymentgateway.service.PaymentGatewayTypeAware

public class CheckoutComPaymentModificationService extends Object implements com.broadleafcommerce.paymentgateway.service.PaymentGatewayPaymentModificationService
The default implementation to exchange the Apple Pay token for a reference token that can be used later to request a payment.
Author:
Dima Myroniuk (dmyroniuk)
  • Constructor Details

    • CheckoutComPaymentModificationService

      public CheckoutComPaymentModificationService(ExchangeWalletTokenService exchangePaymentTokenService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details

    • modifyPaymentMethodProperties

      public Map<String,String> modifyPaymentMethodProperties(@NonNull @NonNull Map<String,String> paymentMethodProperties, @Nullable String applicationId, @Nullable String tenantId)
      Specified by:
      modifyPaymentMethodProperties in interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayPaymentModificationService
    • 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
    • parseApplePayTokenData

      protected com.checkout.tokens.ApplePayTokenData parseApplePayTokenData(String token)
    • 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
    • getExchangePaymentTokenService

      protected ExchangeWalletTokenService getExchangePaymentTokenService()
    • getObjectMapper

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