diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-02-01 15:10:20 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-02-01 15:10:20 +0100 |
commit | 42a0076f5951d303635b2e544aa66112cdb9abfe (patch) | |
tree | 432874ec0e7dbe6c831992f70a468bc1b6719901 /extension/lib/wallet/wxmessaging.js | |
parent | b150470eb60017b4ccdf56351428f9452a207fc8 (diff) | |
download | wallet-core-42a0076f5951d303635b2e544aa66112cdb9abfe.tar.xz |
new fulfillment protocol
Diffstat (limited to 'extension/lib/wallet/wxmessaging.js')
-rw-r--r-- | extension/lib/wallet/wxmessaging.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/extension/lib/wallet/wxmessaging.js b/extension/lib/wallet/wxmessaging.js index ad49ca03a..bd108276f 100644 --- a/extension/lib/wallet/wxmessaging.js +++ b/extension/lib/wallet/wxmessaging.js @@ -66,8 +66,8 @@ System.register(["./wallet", "./db", "./http"], function(exports_1) { }, _a["confirm-pay"] = function (db, detail, sendResponse) { wallet.confirmPay(detail.offer, detail.merchantPageUrl) - .then(function () { - sendResponse({ success: true }); + .then(function (r) { + sendResponse(r); }) .catch(function (e) { console.error("exception during 'confirm-pay'"); @@ -79,11 +79,7 @@ System.register(["./wallet", "./db", "./http"], function(exports_1) { _a["execute-payment"] = function (db, detail, sendResponse) { wallet.doPayment(detail.H_contract) .then(function (r) { - sendResponse({ - success: true, - payReq: r.payReq, - contract: r.contract, - }); + sendResponse(r); }) .catch(function (e) { console.error("exception during 'execute-payment'"); |