Class 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 Detail

      • CheckoutConfigurationProperties

        public CheckoutConfigurationProperties()
    • Method Detail

      • 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

        public String getSecretKey​(@Nullable
                                   String applicationId,
                                   @Nullable
                                   String tenantId)
        Gathers the configured Checkout.com secret key based on the provided context attributes.
        Parameters:
        applicationId - the application ID
        tenantId - the tenant ID
        Returns:
        The configured Checkout.com secret key
      • getPublicKey

        public String getPublicKey​(@Nullable
                                   String applicationId,
                                   @Nullable
                                   String tenantId)
        Gathers the configured Checkout.com public key based on the provided context attributes.
        Parameters:
        applicationId - the application ID
        tenantId - the tenant ID
        Returns:
        The configured Checkout.com public key
      • setSecretKey

        public 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.
      • setPublicKey

        public void setPublicKey​(String publicKey)
        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.
      • setEnvironment

        public void setEnvironment​(String environment)
        Environment can be either PRODUCTION or SANDBOX. Sandbox Environment is required to test the SDK locally while Production Environment will be used on Production.