> ## Documentation Index
> Fetch the complete documentation index at: https://galacticagames.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Sandbox

> Test your integration without real payments

The ToffeePay sandbox is a fully isolated environment for development and testing. It behaves identically to production but no real payments are processed.

## Getting Access

1. Register at [sandbox.dashboard.toffeepay.com](https://sandbox.dashboard.toffeepay.com/)
2. Complete the onboarding process to set up your game
3. Copy your sandbox access token from the dashboard

Use this token with the sandbox base URL:

```
https://api.sandbox.toffeepay.com
```

Or via SDK:

> [tab] TypeScript
>
> ```typescript theme={null}
> const toffee = new Toffee({
>   accessToken: "your-sandbox-token",
>   environment: "sandbox",
> });
> ```

> [tab] Python
>
> ```python theme={null}
> toffee = Toffee(
>     access_token="your-sandbox-token",
>     environment="sandbox",
> )
> ```

> [tab] Go
>
> ```go theme={null}
> toffee := sdk.New(sdk.Config{
>   AccessToken: "your-sandbox-token",
>   Environment: sdk.Sandbox,
> })
> ```

***

## Test Cards

Use these card numbers to simulate different payment scenarios:

**Mastercard**

* Number: `5100 0600 0000 0002`
* Expiry: `12/2029`
* CVC: `737`

**Visa**

* Number: `4400 0000 0000 0008`
* Expiry: `03/2030`
* CVC: `737`

***

## Test OTP

We don't send real SMS messages in the sandbox. Use the static OTP code:

**`466577`**

***

## Webhook Testing

Use a tool like [ngrok](https://ngrok.com/) to expose your local server to the sandbox:

```bash theme={null}
ngrok http 3000
```

Then set your webhook URL in the dashboard to the ngrok URL.

***

## Notes

* Sandbox and production use **separate access tokens** — they are not interchangeable
* Sandbox data is isolated and does not affect production
* Payment methods like Apple Pay and Google Pay are simulated — use test cards instead


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.