Requirements
- React Native 0.73+ or Expo SDK 50+
react-native-webview>= 13react-native-safe-area-context>= 4
Compatible with Expo Go - no custom dev build or config plugin required.
Installation
How it works
Your backend creates a checkout session using your secret API key. The session is passed to the mobile SDK - your API key never touches the device.Backend: create a session
CallPOST /v1/mobile/session from your server:
Usage
usePayBridgeNP hook (recommended)
Let the user pick the provider - session is created lazily after they tap.
Pre-built session
Use this when your backend picks the provider before showing the sheet.ProviderSheet directly
API reference
usePayBridgeNP(options)
Returns
{ present, dismiss, isVisible, sheetProps }.
Pass either
session or createSession - not both. createSession is preferred as it defers session creation until the user has picked a provider.ProviderSheet props
Same options as usePayBridgeNP, plus visible: boolean.
PayBridgeMobileConfig
CheckoutResult
MobileSession
Sandbox testing
Usesk_test_... keys on your backend. The sandbox uses real provider test environments - no extra setup needed.
eSewa sandbox test credentials
Khalti sandbox is handled automatically via your
sk_test_... PayBridgeNP key.