> For the complete documentation index, see [llms.txt](https://coindisco.gitbook.io/coindisco/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://coindisco.gitbook.io/coindisco/for-businesses/sandbox-and-production.md).

# Sandbox and production

Coindisco business accounts have separate sandbox and production environments.

| Environment | Dashboard name | Key prefix | Transactions                            | Purpose                             |
| ----------- | -------------- | ---------- | --------------------------------------- | ----------------------------------- |
| Sandbox     | Sandbox        | `pk_test_` | Simulated by the Coindisco sandbox flow | Integration development and testing |
| Production  | Live           | `pk_prod_` | Real                                    | Customer traffic                    |

The widget derives the API environment from its public key. A `pk_test_` key uses sandbox; a `pk_prod_` key uses live.

## Sandbox URL

```
https://widget.coindisco.com/?publicKey=pk_test_YOUR_PUBLIC_KEY
```

## Production URL

```
https://widget.coindisco.com/?publicKey=pk_prod_YOUR_PUBLIC_KEY
```

## Environment isolation

Treat sandbox and production as separate configurations:

* do not use a sandbox key in production;
* configure origins and webhooks for the intended environment;
* do not reuse test transaction IDs in live requests;
* repeat the critical test cases after switching to production with a controlled rollout.

{% hint style="warning" %}
Provider-hosted test behavior varies. Use only test data explicitly documented by the provider and never assume that arbitrary real card data is safe in a test checkout.
{% endhint %}
