diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-09-09 02:18:03 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-09-09 02:18:03 +0530 |
commit | 67df550b4f6d67f8de346985df26133dc8da5c05 (patch) | |
tree | 575b514c1f6a9723fd32678da42f21c3c7ab523b /packages/taler-wallet-core/src/operations/pending.ts | |
parent | 68ca4600e0e3460423a6c33530bd4bb8096afa65 (diff) | |
download | wallet-core-67df550b4f6d67f8de346985df26133dc8da5c05.tar.xz |
implement payment aborts with integration test
Diffstat (limited to 'packages/taler-wallet-core/src/operations/pending.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/pending.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/operations/pending.ts b/packages/taler-wallet-core/src/operations/pending.ts index 7338ac77d..4f6477d50 100644 --- a/packages/taler-wallet-core/src/operations/pending.ts +++ b/packages/taler-wallet-core/src/operations/pending.ts @@ -22,6 +22,7 @@ import { ProposalStatus, ReserveRecordStatus, Stores, + AbortStatus, } from "../types/dbTypes"; import { PendingOperationsResponse, @@ -381,7 +382,7 @@ async function gatherPurchasePending( onlyDue = false, ): Promise<void> { await tx.iter(Stores.purchases).forEach((pr) => { - if (pr.paymentSubmitPending) { + if (pr.paymentSubmitPending && pr.abortStatus === AbortStatus.None) { resp.nextRetryDelay = updateRetryDelay( resp.nextRetryDelay, now, @@ -398,7 +399,7 @@ async function gatherPurchasePending( }); } } - if (pr.refundStatusRequested) { + if (pr.refundQueryRequested) { resp.nextRetryDelay = updateRetryDelay( resp.nextRetryDelay, now, |