diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-04-26 03:10:52 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-04-26 03:10:52 +0200 |
commit | 79a2eed5589468c2df3e4ee2d190d9fc43b80fe9 (patch) | |
tree | b9250369bb2b54a2fb298f611ff7142a0c825999 /src/wxBackend.ts | |
parent | 9aab9fd6134351bba9445df2b24d3d2c6deedf0e (diff) |
remove dependency in taler-wallet-lib, implement pay signature check/storage
Diffstat (limited to 'src/wxBackend.ts')
-rw-r--r-- | src/wxBackend.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wxBackend.ts b/src/wxBackend.ts index 1aa10ce4c..984cad21a 100644 --- a/src/wxBackend.ts +++ b/src/wxBackend.ts @@ -254,10 +254,14 @@ function makeHandlers(db: IDBDatabase, }, ["payment-succeeded"]: function (detail, sender) { let contractHash = detail.contractHash; + let merchantSig = detail.merchantSig; if (!contractHash) { return Promise.reject(Error("contractHash missing")); } - return wallet.paymentSucceeded(contractHash); + if (!merchantSig) { + return Promise.reject(Error("merchantSig missing")); + } + return wallet.paymentSucceeded(contractHash, merchantSig); }, }; } |