Sandbox Environment
VLPlay provides a sandbox environment for testing your integration without affecting production data or making real payments. [PLACEHOLDER] The sandbox environment mirrors all production features but uses test payment methods, mock IAP products, and isolated user accounts. Sandbox data is reset periodically (every 30 days) and is not suitable for production use.
[PLACEHOLDER] To use the sandbox environment, initialize the SDK with env: 'sandbox' (Web) or VLPlayConfig.Environment.SANDBOX (Android/iOS). You will also need to create a separate sandbox application in your VLPlay representative — sandbox and production applications have separate App IDs.
Configuration
- Web
- Android
- iOS
await VLPlaySDK.init({
appId: 'YOUR_SANDBOX_APP_ID',
clientSecret: 'YOUR_SANDBOX_CLIENT_SECRET',
env: 'sandbox',
debug: true,
});
val config = VLPlayConfig.Builder(
appId = "YOUR_SANDBOX_APP_ID",
clientSecret = "YOUR_SANDBOX_CLIENT_SECRET"
)
.environment(VLPlayConfig.Environment.SANDBOX)
.enableLogging(true)
.build()
VLPlaySDK.initialize(context = this, config = config)
VLPlaySDK.initialize(
appId: "YOUR_SANDBOX_APP_ID",
clientSecret: "YOUR_SANDBOX_CLIENT_SECRET",
environment: .sandbox
)
Sandbox Base URLs
| Service | URL |
|---|---|
| API Gateway | https://gw-s.vlplay.vn/sdk/v1 |
| WebPay | https://pay-s.vlplay.vn |
| Dashboard | https://hub-s.vlplay.vn |
Test Accounts
Use the following test accounts in the sandbox environment:
| Username | Password | Notes |
|---|---|---|
test_player@vlplay.vn | TestPass123! | Standard player account |
test_guest@vlplay.vn | — | Guest account (no login needed) |
⚠️ Do not use sandbox App IDs in production builds.