eSewa and Khalti need no credentials for sandbox testing. Built-in test credentials are used automatically.Fonepay is the exception: it has no test environment, so sandbox-mode Fonepay uses your own real merchant credentials and moves real money (capped at NPR 1,000 per payment and NPR 5,000 per month). See Sandbox Testing.
eSewa
Wallet checkout with built-in sandbox credentials.Khalti
Wallet, bank, and card options through Khalti checkout.Fonepay
Dynamic QR paid from Fonepay-connected bank apps.What buyers can pay with
Each provider gives buyers different ways to pay inside its own checkout. Through Khalti, buyers can pay from their Khalti wallet, mobile banking or e-banking of partner banks, or a card. Through eSewa, buyers pay from their eSewa wallet. Through Fonepay, buyers scan the QR from any Fonepay-network bank app, no separate account needed.eSewa
Get your credentials
- Log in to your eSewa merchant account at merchant.esewa.com.np
- Go to Profile → Merchant Code - this is your
merchantCode - Go to Settings → Payment Integration to find your
secretKey
Add to dashboard
- Go to Providers in the dashboard
- Click Configure next to eSewa
- Enter your Merchant Code and Secret Key
- Click Save and toggle the provider on
Khalti
Get your credentials
- Log in to admin.khalti.com
- Go to API Keys
- Copy your Secret Key (starts with
live_secret_key_)
Add to dashboard
- Go to Providers in the dashboard
- Click Configure next to Khalti
- Enter your Secret Key
- Click Save and toggle the provider on
Fonepay
Fonepay uses Dynamic QR - customers scan a QR code with their Fonepay-connected banking app to pay. No redirect, no form; the payment is confirmed via WebSocket in real time.Get your credentials
Fonepay does not issue separate API keys. PayBridgeNP signs in to your Fonepay merchant account with the same username and password you use yourself:- Have your Fonepay merchant login ready.
- Use the username and password that sign you in. PayBridgeNP detects the account connection and remembers it for your project.
PayBridgeNP cannot sign in for you if Fonepay requires a one-time code at every login, or if Fonepay is asking you to set a new password. Complete that step with Fonepay first, then save the new password here.
Provider credentials are encrypted at rest and used only for provider requests for your project. Rotate them immediately if you suspect they were exposed.
Add to dashboard
- Go to Providers in the dashboard
- Click Configure next to Fonepay
- Enter your Fonepay Username (phone number) and Fonepay Password
- Click Save and toggle the provider on
Some Fonepay refunds require a one-time confirmation outside PayBridgeNP. Those refunds are recorded as
requires_action; follow the provider instructions and mark them complete under Refunds.Verifying your setup
After adding credentials:- Use your live API key (
sk_live_...) in your server - Create a checkout session for a small amount (NPR 10, the minimum)
- Complete the payment using your own account on that provider
- Confirm the payment appears in your provider’s merchant dashboard