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"
};
Property | Description |
---|---|
publisherToken | The 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. |
checkoutPublicKey | The 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. |
environment | The current environment for the checkout. Use sandbox for testing purposes and production for the live release. |