Local-only record of webhook callbacks — not queried from Cardstream.
Local to this demo — Cardstream has no list API
Cardstream's API does not expose any way to enumerate or search a merchant's transactions. The closest thing it offers is QUERY, which fetches a single transaction by its xref.
The list below is built locally in this demo by recording every callbackURL POST that api/webhook.php receives, into a small SQLite database (data/history.db). It will only show transactions that completed while this demo's webhook URL was reachable from Cardstream.
The Refresh action on each row calls Cardstream QUERY for that single xref and updates the local row with whatever state the gateway returns — useful for picking up post-settlement state changes.