diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-09-06 11:45:53 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-09-06 11:45:53 +0200 |
commit | 761397bdf20069f04159fcab5b1220f7e723cf42 (patch) | |
tree | 056e6664c09bcbea87382e785e4c0bcb54e5d648 /src/wallet.ts | |
parent | f6c01085113dfb004ca4478f276cfef0d2c24138 (diff) | |
download | wallet-core-761397bdf20069f04159fcab5b1220f7e723cf42.tar.xz |
also re-submit payment when redirected to existing one
Diffstat (limited to 'src/wallet.ts')
-rw-r--r-- | src/wallet.ts | 3 |
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, |