Class DefaultChasePaymentWalletSessionService
java.lang.Object
com.broadleafcommerce.vendor.chasepayment.service.wallet.DefaultChasePaymentWalletSessionService
- All Implemented Interfaces:
ChasePaymentWalletSessionService
public class DefaultChasePaymentWalletSessionService
extends Object
implements ChasePaymentWalletSessionService
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultChasePaymentWalletSessionService(ChasePaymentApplePayWebClientProvider applePayWebClientProvider, ChasePaymentApplePayConfigurationProperties applePayConfigurationProperties, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected ChasePaymentCreateApplePaySessionRequestbuildCreateApplePaySessionRequest(String applicationId, String tenantId) createApplePaySession(String createSessionUrl, String applicationId, String tenantId) Sends the request to the provided "createSessionUrl" to create the Apple Pay session.protected ChasePaymentApplePayWebClientProviderprotected com.broadleafcommerce.common.extension.TypeFactoryprotected voidvalidateSessionUrl(String createSessionUrl)
-
Constructor Details
-
DefaultChasePaymentWalletSessionService
public DefaultChasePaymentWalletSessionService(ChasePaymentApplePayWebClientProvider applePayWebClientProvider, ChasePaymentApplePayConfigurationProperties applePayConfigurationProperties, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
createApplePaySession
public String createApplePaySession(String createSessionUrl, @Nullable String applicationId, @Nullable String tenantId) Description copied from interface:ChasePaymentWalletSessionServiceSends the request to the provided "createSessionUrl" to create the Apple Pay session.- Specified by:
createApplePaySessionin interfaceChasePaymentWalletSessionService- Parameters:
createSessionUrl- the URL to create the sessionapplicationId- the application idtenantId- the tenant id- Returns:
- Returns an opaque Apple Pay session object as a JSON string for Apple Pay
-
validateSessionUrl
-
buildCreateApplePaySessionRequest
protected ChasePaymentCreateApplePaySessionRequest buildCreateApplePaySessionRequest(@Nullable String applicationId, @Nullable String tenantId) -
getApplePayWebClientProvider
-
getApplePayConfigurationProperties
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-