Testing
Use sandbox mode and test credentials to drive every payment outcome without moving real money.
The sandbox environment allows you to simulate transactions without moving real money. Use it to build and test your integration end to end before accepting live payments.
Sandbox basics
- Base URL:
https://request.shadhinpay.com/api/v1 - Keys: Use your unified API key (
SPay_…) from your business in the dashboard. - Environment toggle: Enable the Sandbox switch for each provider (bKash, Nagad, Stripe, etc.) under Businesses → Vendors.
- Sandbox payments never reach real bank/MFS accounts, never post to your balance, never count toward subscription limits, and are excluded from settlement.
Test Credentials
Use any test credential below to test your payment integration. Please do not use your personal or real business credentials.
| Bkash Credentials | OTP | PIN |
|---|---|---|
| 01770618575 | 123456 | 12121 |
| 01929918378 | 123456 | 12121 |
| 01770618576 | 123456 | 21212 |
| 01619777282 | 123456 | 21212 |
| 01877722345 | 123456 | 13131 |
| 01619777283 | 123456 | 13131 |
| Nagad Credentials | OTP | PIN |
|---|---|---|
| - | - | - |
| Rocket Credentials | OTP | PIN |
|---|---|---|
| - | - | - |
| Upay Credentials | OTP | PIN |
|---|---|---|
| - | - | - |
| Card Number (Stripe Test) | Expiry | CVV | Supported Currencies |
|---|---|---|---|
| 4242 4242 4242 4242 | 12/28 | 123 | BDT, USD, EUR, GBP |
Example — create a test payment:
curl -X POST https://request.shadhinpay.com/api/v1/payment/create \
-H "Client-Id: SM_87ixWd_8" \
-H "Business-Id: SB_01M6KF7RG99VW2CAXD7Y3PN5CW" \
-H "X-Api-Key: SPay_9bgvOl24P2zfvj8Ai0Fa6XO8qyGSIavL" \
-H "X-Idempotency-Key: test-order-1" \
-H "Content-Type: application/json" \
-d '{
"amount": "500.00",
"currency": "BDT",
"merchantTxnId": "test-order-1",
"callbackUrl": "http://localhost:3000/return",
"customerPhone": "01770618575"
}'HTTP callbacks allowed in sandbox
The sandbox accepts http:// callback and redirect URLs (e.g. localhost) so you
can test locally. Live mode requires HTTPS.
Testing webhooks
Webhooks fire in the sandbox exactly as they do in production:
- Point your business's webhook URL at your endpoint (a tunneling tool like ngrok or local tunnel works well for local development).
- Create a payment with the test phone number or card number.
- Receive and verify the
payment.completedwebhook — see Webhooks.
Viewing test data
On your merchant transactions and payments screen, sandbox payments are clearly identified with a (Sandbox) badge (e.g. bKash (Sandbox)).
Going live
When your integration works in the sandbox:
- Ensure your merchant profile is Active and your business's providers have valid live credentials configured.
- Under Businesses → Vendors, toggle the Sandbox switch to OFF for each vendor you wish to activate for live transactions.
- Keep the same
SPay_API key and base URL — all requests will now process live transactions.