-
Notifications
You must be signed in to change notification settings - Fork 0
Live Data
Nikolaj Leischner edited this page Oct 31, 2019
·
8 revisions
The diagram below shows the live data flow in the Stash! SDK.
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:
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 |