aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-09-06 11:45:53 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-09-06 11:45:53 +0200
commit761397bdf20069f04159fcab5b1220f7e723cf42 (patch)
tree056e6664c09bcbea87382e785e4c0bcb54e5d648 /src/wallet.ts
parentf6c01085113dfb004ca4478f276cfef0d2c24138 (diff)
downloadwallet-core-761397bdf20069f04159fcab5b1220f7e723cf42.tar.xz
also re-submit payment when redirected to existing one
Diffstat (limited to 'src/wallet.ts')
-rw-r--r--src/wallet.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet.ts b/src/wallet.ts
index bbdcf9224..cec656ad0 100644
--- a/src/wallet.ts
+++ b/src/wallet.ts
@@ -785,6 +785,9 @@ export class Wallet {
"merchant with different public key offered contract with same fulfillment URL as an existing purchase",
);
} else {
+ if (uriResult.sessionId) {
+ await this.submitPay(differentPurchase.contractTermsHash, uriResult.sessionId);
+ }
return {
status: "paid",
contractTerms: differentPurchase.contractTerms,