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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.checkout.Environment
Gathers the configured Checkout.com environment.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.void
setEnvironment
(String environment) Environment can be either PRODUCTION or SANDBOX.void
setPublicKey
(String publicKey) Along with the Secret Key, the Public Key is also used to authenticate with the Checkout.com SDK.void
setSecretKey
(String secretKey) This Secret Key is the unique identifier provided by the checkout.com which is used to authenticate with the Checkout.com SDK.void
setSignatureKey
(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:
-
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.
-