3DS_CHALLENGE_INITIATED, and 3DS_CHALLENGE_RESULT on some card programs),
so a card payment that needs approval reaches the customer’s device instantly (see
3DS events), and
BATCH_PAYMENT_VERIFICATION_COMPLETED, which says a
batch verification has finished. It also carries the
limit review events that ask the customer to explain held money
(LIMIT_REVIEW_CUSTOMER_ASKED) and announce a decision (LIMIT_REVIEW_APPROVED,
LIMIT_REVIEW_REJECTED), and TRANSACTION_LIMITS_CHANGED (data: { customerId }) when back
office has changed the customer’s transaction limits: read them
again.
An event is delivered only to a connection that is open when it is sent; apart from the 3DS
re-delivery described under Missed events, nothing is queued for later. After
connecting or reconnecting, catch up over REST: the
recent 3DS notifications feed (v2)
and the customer’s open limit reviews.
Connecting
accessToken (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 still pending may be pushed again when the socket reconnects (10-minute window); de-duplicate ondata.id. For anything older, read the
recent 3DS notifications feed (v2).
Other event types aren’t replayed. Treat the connection as a live feed, with REST as the
source of truth.
Receiving events
Every event is JSON with acode that says what it is:
code and ignore codes you don’t recognise. New event types get added without
notice.