diff options
author | Sebastian <sebasjm@gmail.com> | 2024-03-01 11:56:12 -0300 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-03-05 00:15:33 +0100 |
commit | 3b8124b971cfed81a7976cd9c52b4d2b0e9a8482 (patch) | |
tree | 593777551c8129bdf65e5910ba91579bb1a67477 /packages/taler-wallet-core/src/db.ts | |
parent | 74fcd99c8d3dcbc1d1ac3086dce0a9ed0e07c519 (diff) | |
download | wallet-core-3b8124b971cfed81a7976cd9c52b4d2b0e9a8482.tar.gz wallet-core-3b8124b971cfed81a7976cd9c52b4d2b0e9a8482.tar.bz2 wallet-core-3b8124b971cfed81a7976cd9c52b4d2b0e9a8482.zip |
notify the UI about order paid by another wallet
After the request about the status of a shared payment returns
"PAID = true" save the information in the database and use
it to notify that the order is already-paid with paid:true
If the order is already-aid with paid:false the UI will
show claim-by-another-wallet which is not wrong
but for this use case the other-wallet intentionally paid
in the same session and is expected to be redirected to
the purchased fulfillment url.
note that the purchase does not create a transaction yet,
since the payment is not made in the first wallet.
And we should also take into account how this interacts
with the repurchase detection.
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r-- | packages/taler-wallet-core/src/db.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts index 9efc9fbe0..7e4f9fa4a 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -1326,6 +1326,12 @@ export interface PurchaseRecord { * did not picked up yet */ refundAmountAwaiting: AmountString | undefined; + + /** + * When the purchase has been shared to other wallet + * and the other wallet completed before this one. + */ + paidByOther: boolean | undefined; } export enum ConfigRecordKey { |