YuvexPay provides two environments that share the same API URL but behave differently based on your credentials.
Sandbox vs. production
| Feature | Sandbox | Production |
|---|
| API URL | https://api.yuvexpay.com | https://api.yuvexpay.com |
| Access token prefix | ypt_ | ypt_ |
| client_secret prefix | sk_sandbox_ | sk_prod_ |
| Real money | No | Yes |
| Webhooks | Simulated | Real events |
| Rate limits | Same as production | Per-account limits |
Both environments use the same API URL. The environment is determined by the credentials used to generate your access token.
Using sandbox
Create sandbox API credentials in the dashboard under Settings > API Credentials and select the Sandbox environment.
Sandbox mode simulates the full payment lifecycle:
- Payments are created with real-looking data.
- Status transitions (PROCESSING, PAID, EXPIRED) are simulated.
- Webhooks fire with simulated events.
- No real money is moved.
Use sandbox to test your entire integration flow, including webhook handling and error scenarios, before switching to production.
Going live
When you’re ready to accept real payments:
- Create production API credentials in the dashboard.
- Replace your
client_id and client_secret with the production values.
- Verify your webhook endpoints handle production events correctly.
- Generate a production token and start processing real transactions.
Production transactions involve real money. Ensure your error handling and idempotency logic is thoroughly tested in sandbox before going live.