Skip to main content
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
  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:
const toffee = new Toffee({
  accessToken: "your-sandbox-token",
  environment: "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 to expose your local server to the sandbox:
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