Before you can accept real payments, add your merchant credentials to your project in the dashboard. PayBridgeNP uses these to initiate and verify payments on your behalf - money always lands directly in your own provider account.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.
You don’t need credentials for sandbox testing. Built-in test credentials are used automatically. See Sandbox Testing.
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
| Field | Description |
|---|---|
merchantCode | Your eSewa product code |
secretKey | HMAC-SHA256 secret from the eSewa merchant portal |
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 authenticates against the Fonepay merchant portal using the same credentials you use to sign in:- Have your Fonepay merchant account ready at login.fonepay.com
- Use the same username (phone number) and password you use to log in
PayBridgeNP encrypts these credentials with AES-256-GCM at rest and uses them only to log in to the Fonepay portal on each session. We never log or expose your raw password.
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
| Field | Description |
|---|---|
username | Your Fonepay merchant phone number (the one you sign in with) |
password | Your Fonepay merchant portal password |
Fonepay refunds do not have an automated API. When a refund is issued, it is recorded as Action required - you must process it manually in the Fonepay merchant panel, then mark it as completed in the PayBridgeNP dashboard under Refunds.
Verifying your setup
After adding credentials:- Switch your project to live mode
- Create a test checkout session for a small amount (NPR 1)
- Complete the payment using your own account on that provider
- Confirm the payment appears in your provider’s merchant dashboard