[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 02/03: storePayReplaySuccess should also considre Pa
From: |
gnunet |
Subject: |
[taler-wallet-core] 02/03: storePayReplaySuccess should also considre PayingReplay |
Date: |
Fri, 21 Oct 2022 16:08:21 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
commit 5da924a760c3641f46f509b552e2b35f2fb6356e
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Fri Oct 21 11:06:31 2022 -0300
storePayReplaySuccess should also considre PayingReplay
---
packages/taler-wallet-core/src/operations/pay-merchant.ts | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/packages/taler-wallet-core/src/operations/pay-merchant.ts
b/packages/taler-wallet-core/src/operations/pay-merchant.ts
index 082dc42d2..baf520c5b 100644
--- a/packages/taler-wallet-core/src/operations/pay-merchant.ts
+++ b/packages/taler-wallet-core/src/operations/pay-merchant.ts
@@ -736,7 +736,10 @@ async function storePayReplaySuccess(
if (isFirst) {
throw Error("invalid payment state");
}
- if (purchase.purchaseStatus === PurchaseStatus.Paying) {
+ if (
+ purchase.purchaseStatus === PurchaseStatus.Paying ||
+ purchase.purchaseStatus === PurchaseStatus.PayingReplay
+ ) {
purchase.purchaseStatus = PurchaseStatus.Paid;
}
purchase.lastSessionId = sessionId;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.