Skip to main content
ShadhinPay Docs

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 CredentialsOTPPIN
0177061857512345612121
0192991837812345612121
0177061857612345621212
0161977728212345621212
0187772234512345613131
0161977728312345613131
Nagad CredentialsOTPPIN
---
Rocket CredentialsOTPPIN
---
Upay CredentialsOTPPIN
---
Card Number (Stripe Test)ExpiryCVVSupported Currencies
4242 4242 4242 424212/28123BDT, 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:

  1. Point your business's webhook URL at your endpoint (a tunneling tool like ngrok or local tunnel works well for local development).
  2. Create a payment with the test phone number or card number.
  3. Receive and verify the payment.completed webhook — 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:

  1. Ensure your merchant profile is Active and your business's providers have valid live credentials configured.
  2. Under Businesses → Vendors, toggle the Sandbox switch to OFF for each vendor you wish to activate for live transactions.
  3. Keep the same SPay_ API key and base URL — all requests will now process live transactions.

Next steps

On this page