BATCH_PAYMENT_VERIFICATION_COMPLETED, which says a
batch verification has finished.
Connecting
access_token (the same token you send as the bearer on REST calls) as the
token query parameter. It’s checked once, during the handshake. A valid token opens the
connection; an invalid or expired one rejects the handshake. The connection is scoped to
the authenticated user, so you only receive their events.
The access token lasts about 5 minutes, so by the time you reconnect it has almost
certainly expired. The open connection isn’t affected (auth happens only at the handshake),
but refresh
before every reconnect and use the fresh token. Once the refresh token itself expires
(about an hour), the user signs in again before the WebSocket can reconnect.
Keeping the connection alive
Two server-side limits shape your client:Missed events
A 3DS challenge pushed while the customer is offline is re-delivered on reconnect: any still-pending challenge from the last 10 minutes that wasn’t delivered is pushed again as soon as the connection opens. Anything older has expired anyway. Other event types aren’t replayed. Treat the connection as a live feed, with REST as the source of truth.Receiving events
Every message is JSON with acode that says what it is:
code and ignore codes you don’t recognise. New event types get added without
notice.