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
eSewa does not show these in its merchant portal. It emails your Merchant Code (merchantCode) and Secret Key (secretKey) when it activates online payments for your account.
- Search your email for the message from eSewa with your online payment credentials
- If you have not received it, ask eSewa merchant support for your online payment credentials
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 in real time.Get your credentials
Fonepay does not issue separate API keys. Connect PayBridgeNP using your Fonepay merchant details:- Have your Fonepay merchant username and password ready.
- Enter your current username and password. PayBridgeNP checks these details and saves the connection for your project.
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, follow any on-screen prompts, 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