commit cc5b5701421c6b3bdce4b1ed3202c99152bb2534
parent b84d1c761a860d5e80310bb38d2921670ee11ad6
Author: Florian Dold <florian@dold.me>
Date: Tue, 29 Apr 2025 15:43:17 +0200
-also consider other return path
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/packages/taler-wallet-core/src/pay-merchant.ts b/packages/taler-wallet-core/src/pay-merchant.ts
@@ -2821,6 +2821,14 @@ export async function confirmPay(
existingPurchase.proposalId,
);
await wex.taskScheduler.resetTaskRetries(ctx.taskId);
+ // This will become the default behavior on the future.
+ if (wex.ws.devExperimentState.flagConfirmPayNoWait) {
+ return {
+ type: ConfirmPayResultType.Pending,
+ transactionId: transactionId as TransactionIdStr,
+ lastError: undefined,
+ };
+ }
return waitPaymentResult(wex, proposalId);
}