Class DefaultExchangeWalletTokenService

java.lang.Object
com.broadleafcommerce.vendor.checkoutcom.service.token.DefaultExchangeWalletTokenService
All Implemented Interfaces:
ExchangeWalletTokenService

public class DefaultExchangeWalletTokenService extends Object implements ExchangeWalletTokenService
The default implementation for ExchangeWalletTokenService
Author:
Dima Myroniuk (dmyroniuk)
  • Constructor Details

    • DefaultExchangeWalletTokenService

      public DefaultExchangeWalletTokenService(CheckoutApiInitService checkoutApiInitService)
  • Method Details

    • exchangeWalletToken

      public com.checkout.tokens.TokenResponse exchangeWalletToken(com.checkout.tokens.WalletTokenRequest request, @Nullable String applicationId, @Nullable String tenantId) throws com.broadleafcommerce.paymentgateway.service.exception.ExchangeWalletTokenException
      Description copied from interface: ExchangeWalletTokenService
      Exchange a digital wallet payment token for a reference token.
      Specified by:
      exchangeWalletToken in interface ExchangeWalletTokenService
      Parameters:
      request - the request to exchange token
      applicationId - the application id
      tenantId - the tenant id
      Returns:
      the token response with a single use token
      Throws:
      com.broadleafcommerce.paymentgateway.service.exception.ExchangeWalletTokenException - if the request is failed
    • getCheckoutApiInitService

      protected CheckoutApiInitService getCheckoutApiInitService()