Refresh a Fonepay Direct-QR (same session)
Regenerate a fresh Fonepay QR for an existing Direct-QR session. The Fonepay QR display window is only ~3 min and some wallets (eSewa) reject a stale QR, so call this to show a fresh, scannable QR without spawning a new session per order - the session id, events_url, and webhook are unchanged.
The session’s expires_at (the 30-min lifetime) is immutable and is never extended by a refresh. A payment made on a previously-shown QR is still captured. Requires the payments:write scope. Pro only.
Authorizations
Your PayBridgeNP API key. Obtain one from the dashboard under Settings → API Keys. Prefix: sk_test_ for testing, sk_live_ for production.
Path Parameters
Direct-QR session ID (prefix: cs_).
Response
A fresh QR was generated for the existing session.
A Direct-QR session for Fonepay. Embed qr_image in your UI and subscribe to events_url for live status.
Session ID. Also the listener token for the SSE events stream.
"cs_01j9x2k3m4n5p6q7r8s9t0u1v2"
true when created with a live key, false for sandbox.
Amount in paisa.
10000
"NPR"
fonepay Always initiated on creation.
initiated Raw Fonepay QR payload string. Encode this if rendering your own QR.
Base64-encoded PNG data URL of the QR (320px).
"data:image/png;base64,iVBORw0KGgo..."
Server-Sent Events URL streaming qr.scanned / qr.paid / qr.expired events. No API key required - the session ID is the listener token.
"https://api.paybridgenp.com/v1/qr/cs_01j9x2k3m4n5p6q7r8s9t0u1v2/events"
When the Fonepay QR expires.