summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/pending.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-09-09 02:18:03 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-09-09 02:18:03 +0530
commit67df550b4f6d67f8de346985df26133dc8da5c05 (patch)
tree575b514c1f6a9723fd32678da42f21c3c7ab523b /packages/taler-wallet-core/src/operations/pending.ts
parent68ca4600e0e3460423a6c33530bd4bb8096afa65 (diff)
downloadwallet-core-67df550b4f6d67f8de346985df26133dc8da5c05.tar.gz
wallet-core-67df550b4f6d67f8de346985df26133dc8da5c05.tar.bz2
wallet-core-67df550b4f6d67f8de346985df26133dc8da5c05.zip
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.ts5
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,