Class CheckoutConfigurationProperties
java.lang.Object
com.broadleafcommerce.paymentgateway.properties.DiscriminatedProperties<CheckoutConfigurationProperties>
com.broadleafcommerce.payment.service.gateway.autoconfigure.CheckoutConfigurationProperties
@ConfigurationProperties("broadleaf.checkout-com")
public class CheckoutConfigurationProperties
extends com.broadleafcommerce.paymentgateway.properties.DiscriminatedProperties<CheckoutConfigurationProperties>
Properties used to configure the Checkout.com integration library. Note: the secret & public keys
can be declared globally, or for specific applications or tenants.
- Author:
- Jawad Tariq
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classProperties used to configure Flow Sessions for Checkout.com. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCustomerRetryMaxAttempts(String applicationId, String tenantId) getDisabledPaymentMethods(String applicationId, String tenantId) getEnabledPaymentMethods(String applicationId, String tenantId) com.checkout.EnvironmentGathers the configured Checkout.com environment.getExpirationDuration(String applicationId, String tenantId) getPublicKey(String applicationId, String tenantId) Gathers the configured Checkout.com public key based on the provided context attributes.getSecretKey(String applicationId, String tenantId) Gathers the configured Checkout.com secret key based on the provided context attributes.getSignatureKey(String applicationId, String tenantId) Gathers the configured Checkout.com signature key.booleanisEnableStoredCards(String applicationId, String tenantId) voidsetEnvironment(String environment) Environment can be either PRODUCTION or SANDBOX.voidThe configuration for Checkout.com Flow Sessions.voidsetPublicKey(String publicKey) Along with the Secret Key, the Public Key is also used to authenticate with the Checkout.com SDK.voidsetSecretKey(String secretKey) This Secret Key is the unique identifier provided by the checkout.com which is used to authenticate with the Checkout.com SDK.voidsetSignatureKey(String signatureKey) The HMAC is generated by taking the contents of the notification and hashing it using this key.Methods inherited from class com.broadleafcommerce.paymentgateway.properties.DiscriminatedProperties
getApplication, getField, getTenant, setApplication, setTenant
-
Constructor Details
-
CheckoutConfigurationProperties
public CheckoutConfigurationProperties()
-
-
Method Details
-
getEnvironment
public com.checkout.Environment getEnvironment()Gathers the configured Checkout.com environment. Note, this is intentionally not application and/or tenant discriminated since we expect this value to be declared for the entire environment, not specific applications or tenants.- Returns:
- The configured Checkout.com environment
-
getSecretKey
Gathers the configured Checkout.com secret key based on the provided context attributes.- Parameters:
applicationId- the application IDtenantId- the tenant ID- Returns:
- The configured Checkout.com secret key
-
getPublicKey
Gathers the configured Checkout.com public key based on the provided context attributes.- Parameters:
applicationId- the application IDtenantId- the tenant ID- Returns:
- The configured Checkout.com public key
-
getSignatureKey
Gathers the configured Checkout.com signature key.- Parameters:
applicationId- the application IDtenantId- the tenant ID- Returns:
- The configured Checkout.com signature key
- See Also:
-
getExpirationDuration
- See Also:
-
CheckoutConfigurationProperties.FlowSessionConfiguration.expirationDuration
-
getCustomerRetryMaxAttempts
public Integer getCustomerRetryMaxAttempts(@Nullable String applicationId, @Nullable String tenantId) - See Also:
-
CheckoutConfigurationProperties.FlowSessionConfiguration.customerRetryMaxAttempts
-
isEnableStoredCards
- See Also:
-
CheckoutConfigurationProperties.FlowSessionConfiguration.enableStoredCards
-
getEnabledPaymentMethods
public List<String> getEnabledPaymentMethods(@Nullable String applicationId, @Nullable String tenantId) - See Also:
-
CheckoutConfigurationProperties.FlowSessionConfiguration.enabledPaymentMethods
-
getDisabledPaymentMethods
public List<String> getDisabledPaymentMethods(@Nullable String applicationId, @Nullable String tenantId) - See Also:
-
CheckoutConfigurationProperties.FlowSessionConfiguration.disabledPaymentMethods
-
setSecretKey
This Secret Key is the unique identifier provided by the checkout.com which is used to authenticate with the Checkout.com SDK. -
setPublicKey
Along with the Secret Key, the Public Key is also used to authenticate with the Checkout.com SDK. Both of these keys needs to be provided in order to complete the authentication with checkout.com. -
setSignatureKey
The HMAC is generated by taking the contents of the notification and hashing it using this key. The HMAC will be in every notification to validate the request. This key is required to integrate with the webhook. -
setEnvironment
Environment can be either PRODUCTION or SANDBOX. Sandbox Environment is required to test the SDK locally while Production Environment will be used on Production. -
setFlow
The configuration for Checkout.com Flow Sessions.
-