firefly-fabconnect icon indicating copy to clipboard operation
firefly-fabconnect copied to clipboard

Improve receipts handling

Open jimthematrix opened this issue 3 years ago • 0 comments

Currently receipts are not produced and saved in the receipts DB until after the transaction has completed. This can be confusing when the client attempts to get the state of the transaction by querying on the receipt ID, where 404 will be returned.

A better design would be for the receipt to be saved in the DB with a pending state in the meanwhile, which gets updated to TransactionSuccess or TransactionFailure upon completion.

jimthematrix avatar Aug 06 '21 19:08 jimthematrix