Configuration

Before the initialization process, you need to create a configuration object as follow:

var config = new ConfigModel
{
  	publisherToken = "YOUR_PUBLISHER_TOKEN",
    checkoutPublicKey = "YOUR_CHECKOUT_PUBLIC_KEY",
    environment = "YOUR_ENVIRONMENT"
};
PropertyDescription
publisherTokenThe publisher token for your environment, which can be found in the Dashboard under the Integration tab. This token is essential for initiating the checkout session process.
checkoutPublicKeyThe checkout public key for your environment, which can be found in the Dashboard under the Integration tab. This key is used to configure the checkout theme. If not provided or left empty, the checkout theme will default to standard values.
environmentThe current environment for the checkout. Use sandbox for testing purposes and production for the live release.