Sandbox mode lets you simulate complete payment flows - checkout, provider redirect, callback, webhook - without a real merchant account and without charging anyone.Documentation Index
Fetch the complete documentation index at: https://docs.paybridgenp.com/llms.txt
Use this file to discover all available pages before exploring further.
How sandbox works
When your project is in sandbox mode, PayBridgeNP automatically uses built-in test credentials for each provider. You don’t need to configure anything in the Providers section. API keys in sandbox mode start withsk_test_.
Built-in test credentials
These credentials are used automatically - you don’t need to enter them anywhere.| Provider | Field | Value |
|---|---|---|
| eSewa | Merchant Code | EPAYTEST |
| eSewa | Secret Key | 8gBm/:&EnhH.1/q |
| Khalti | Secret Key | test_secret_key_f59e8b7d18b4499ca40f68195a846e9b |
| Fonepay | Merchant Code | UAT credentials from Fonepay |
| Fonepay | Secret Key | UAT credentials from Fonepay |
Running a test payment
Make sure your project is in sandbox mode
In the dashboard, go to Settings → API Keys and confirm the environment shows Sandbox. Your key should start with
sk_test_.Pay with eSewa test account
On the checkout page, select eSewa. You’ll be redirected to eSewa’s sandbox (
rc-epay.esewa.com.np).Use these test credentials:- eSewa ID:
9806800001through9806800005 - Password:
Nepal@123 - Token:
123456
Pay with Khalti test account
On the checkout page, select Khalti. You’ll be redirected to Khalti’s sandbox (
dev.khalti.com).Use these test credentials:- Khalti ID:
9800000001through9800000005 - MPIN:
1111 - OTP:
987654
Pay with Fonepay (UAT)
On the checkout page, select Fonepay. A Dynamic QR code is displayed - it refreshes every 3 minutes until paid or the session expires.To complete a UAT payment, scan the QR with a bank app that supports Fonepay UAT (most Nepali bank apps have a UAT mode). The payment is confirmed in real time via WebSocket - no page refresh needed.
Fonepay UAT requires merchant UAT credentials configured in your project’s Providers settings. Contact Fonepay to obtain UAT credentials.
Check the result
After payment, you’re redirected back to your
returnUrl. Check the Payments tab in the dashboard - the payment should appear with status Succeeded.If you have a webhook configured, check Webhooks → Delivery Log to confirm the event was delivered.Switching to live mode
When you’re ready to accept real payments:- Go to Settings → API Keys in the dashboard
- Copy your live key (starts with
sk_live_) - Go to Providers and add your real eSewa and Khalti credentials
- Update your server to use the
sk_live_key
Sandbox limitations
- Sandbox payments do not appear in your eSewa or Khalti merchant dashboard - they’re simulated end-to-end within PayBridgeNP
- Fonepay sandbox uses UAT credentials - contact Fonepay to get UAT merchant access. UAT payments appear in the Fonepay UAT merchant panel
- Webhook delivery works normally in sandbox - your webhook URL must be publicly reachable. Use ngrok or Cloudflare Tunnel for local testing