Overview
Payor websocket streams are used for checkout UX updates. They are scoped to a single payment session and emit payor-safe updates.Authentication
Payor websocket auth uses a payment session token via thetoken query param. This token is returned when you create an invoice and is safe to use in the client during checkout.
Notes:
format=event_v1returns canonicalPepayEventframes (recommended).- The SDK payor stream does not include REST backfill; treat it as realtime only.
Request
Connect to the payor stream
Response
Example frame (event_v1):Errors and delivery
- Invalid/expired session token: connection is rejected/closed by the server.
- Delivery is at-least-once; render UI updates idempotently.
- If you need a replay, reconnect with
since=<event_id>(event_v1 only).
Underpaid lock-in
If a partial payment is received, the invoice status becomesunderpaid. Fetch session details to read:
locked_networklocked_token_idlocked_payment_address
Examples
- Prefer
format=event_v1when available so you can reuse the same event parsing across merchant + payor streams.

