subscribeToTransactions
suspend fun SudoVirtualCardsClient.subscribeToTransactions( id: String, onConnectionChange: (status: TransactionSubscriber.ConnectionState) -> Unit = {}, onTransactionChange: (transaction: Transaction) -> Unit)
Subscribes to be notified of new, updated and deleted Transactions.
Parameters
id
String Unique identifier of the subscriber.
onConnectionChange
lambda that is called when the subscription connection state changes.
onTransactionChange
lambda that receives updates as Transactions change.