Digiway
Developers

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.

VISA
4111 1111 1111 1111
Success
MC
5241 5241 5241 5241
Success
VISA
4111 1111 1111 1112
Failure
VISA
4111 1111 1111 1113
Pending
VISA
4111 1111 1111 1115
Timeout

Any 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.

javascript
// 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:

json
// 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

1

Create Account

Sign up for a free Digiway account. Sandbox access is available immediately—no credit card or KYC needed.

2

Generate Test Keys

Navigate to the API Keys section in your dashboard and generate your test mode key and secret.

3

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.