Skip to content

Live Data

Nikolaj Leischner edited this page Oct 31, 2019 · 8 revisions

The diagram below shows the live data flow in the Stash! SDK.

Live Data Flow

The Stash! backend uses the Postgres Reactive Client for sending live data. Postgres will notify the PgListener about every new transaction. The listener will then create a message for the live data and send it to the Stash! Dashboard via a WebSocket. Every message will contain real-time data for:

  1. Key Performance
  2. Today's Activity
  3. Notifications

Each message will contain the following data:

Parameter Name Description Type
keyPerformance Key performance KeyPerformance
todaysActivity Today's activity TodaysActivity
notifications Notifications Notifications

KeyPerformance object:

Parameter Name Description Type
salesVolume The captured or authorized amount Number
currencyId The default merchant's currency String
nrOfTransactions The number of new transactions Number
nrOfRefundedTransactions The number of new refunded transactions Number
nrOfChargebacks The number of new chargebacks Number

TodaysActivity object:

Parameter Name Description Type
time The time in hours String
amount The captured or authorized amount Number

Notifications object:

Parameter Name Description Type
notification The new notification Notification
nrOfTransactions The number of transactions from yesterday Number

Notification object:

Parameter Name Description Type
paymentMethod Payment method String
content Notification content String
Clone this wiki locally