Test with Confidence
Use our sandbox environment to test every aspect of your integration before going live. Simulated bank responses, configurable scenarios, and zero-risk testing.
Sandbox Features
Everything you need to test thoroughly
Test API Keys
Instant access to test API keys with no KYC required. Start testing your integration in minutes.
Simulated Banks
Realistic bank response simulation including success, failure, timeout, and pending scenarios.
Configurable Scenarios
Control test outcomes by configuring payment success rates, settlement delays, and error codes.
Full API Parity
Sandbox mirrors production APIs exactly. Code that works in sandbox works in production.
Debug Tools
Request logs, response inspector, and webhook delivery tracking to debug integration issues.
Reset & Seed Data
Reset your sandbox to a clean state or seed it with test data for automated testing pipelines.
Test Card Numbers
Use these test cards to simulate different payment scenarios in sandbox mode.
4111 1111 1111 11115241 5241 5241 52414111 1111 1111 11124111 1111 1111 11134111 1111 1111 1115Any future expiry date and any 3-digit CVV will work with these test cards.
Test a Payment
Use test API keys (starting with dg_test_) to simulate payments.
// Use test key (starts with dg_test_)
const digiway = require('digiway')('dg_test_xxxxxxxxxxxx');
// Create a test payment
const payment = await digiway.payments.create({
amount: 50000, // ₹500.00 in paise
currency: 'INR',
method: 'card',
'card[number]': '4111111111111111', // Test Visa card
'card[expiry_month]': '12',
'card[expiry_year]': '2028',
'card[cvv]': '123',
});
console.log(payment.status); // "captured" (test mode)Webhook Payload
When a test payment succeeds, this webhook is sent to your endpoint:
// Webhook payload (sent to your endpoint)
{
"event": "payment.captured",
"payload": {
"payment": {
"id": "pay_test_abc123",
"amount": 50000,
"currency": "INR",
"status": "captured",
"method": "card",
"created_at": 1720483200
}
},
"created_at": 1720483200
}Getting Started with Sandbox
Create Account
Sign up for a free Digiway account. Sandbox access is available immediately—no credit card or KYC needed.
Generate Test Keys
Navigate to the API Keys section in your dashboard and generate your test mode key and secret.
Start Testing
Use test keys with any SDK or direct API calls. Refer to our test card numbers and bank simulation guide.
Ready to Test?
Get instant access to our sandbox environment and start building.

