Class DefaultExchangeWalletTokenService
java.lang.Object
com.broadleafcommerce.vendor.checkoutcom.service.token.DefaultExchangeWalletTokenService
- All Implemented Interfaces:
ExchangeWalletTokenService
The default implementation for
ExchangeWalletTokenService
- Author:
- Dima Myroniuk (dmyroniuk)
-
Constructor Summary
ConstructorDescriptionDefaultExchangeWalletTokenService
(CheckoutApiInitService checkoutApiInitService) -
Method Summary
Modifier and TypeMethodDescriptioncom.checkout.tokens.TokenResponse
exchangeWalletToken
(com.checkout.tokens.WalletTokenRequest request, String applicationId, String tenantId) Exchange a digital wallet payment token for a reference token.protected CheckoutApiInitService
-
Constructor Details
-
DefaultExchangeWalletTokenService
-
-
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 interfaceExchangeWalletTokenService
- Parameters:
request
- the request to exchange tokenapplicationId
- the application idtenantId
- 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
-