Skip to main content
Short-lived tokens for subscribing to live payment events via Supabase Realtime — alternative to polling status. Try in API Reference: Collection realtime key

When to use

Live checkout UI while the customer approves MoMo or completes card 3DS. Not a replacement for server-side fulfillment verification — see Payment status patterns.

Request

FieldTypeDescription
session_idintegerCheckout session ID
source_typestringINVOICE or ORDER
reference_idstringUUID v4

Response

FieldDescription
access_tokenJWT for Supabase Realtime (expires_in is seconds)

After obtaining the token

Connect with Supabase client, channel payment-intent:{session_id}:{reference_id}, table checkout_payment_intent_public_status. Full walkthrough: Realtime status.
Last modified on June 23, 2026