Class DefaultCheckoutComWalletSessionService
java.lang.Object
com.broadleafcommerce.vendor.checkoutcom.service.sesseion.DefaultCheckoutComWalletSessionService
- All Implemented Interfaces:
CheckoutComWalletSessionService
public class DefaultCheckoutComWalletSessionService
extends Object
implements CheckoutComWalletSessionService
The default implementation of
CheckoutComWalletSessionService
.- Author:
- Dima Myroniuk (dmyroniuk)
-
Constructor Summary
ConstructorDescriptionDefaultCheckoutComWalletSessionService
(CheckoutComApplePayWebClientProvider applePayWebClientProvider, CheckoutComApplePayConfigurationProperties applePayConfigurationProperties, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionbuildValidateApplePaySessionRequest
(String applicationId, String tenantId) protected CheckoutComApplePayWebClientProvider
protected com.broadleafcommerce.common.extension.TypeFactory
validateApplePaySession
(String validateSessionUrl, String applicationId, String tenantId) Sends the request to the provided "validateSessionUrl" to validate the Apple Pay session.protected void
validateValidationUrl
(String validateSessionUrl)
-
Constructor Details
-
DefaultCheckoutComWalletSessionService
public DefaultCheckoutComWalletSessionService(CheckoutComApplePayWebClientProvider applePayWebClientProvider, CheckoutComApplePayConfigurationProperties applePayConfigurationProperties, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
validateApplePaySession
public String validateApplePaySession(String validateSessionUrl, @Nullable String applicationId, @Nullable String tenantId) Description copied from interface:CheckoutComWalletSessionService
Sends the request to the provided "validateSessionUrl" to validate the Apple Pay session.- Specified by:
validateApplePaySession
in interfaceCheckoutComWalletSessionService
- Parameters:
validateSessionUrl
- the URL to validate sessionapplicationId
- the application idtenantId
- the tenant id- Returns:
- Returns an opaque Apple Pay session object for Apple Pay
-
validateValidationUrl
-
buildValidateApplePaySessionRequest
protected CheckoutComValidateApplePaySessionRequest buildValidateApplePaySessionRequest(@Nullable String applicationId, @Nullable String tenantId) -
getApplePayWebClientProvider
-
getApplePayConfigurationProperties
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-