aboutsummaryrefslogtreecommitdiff
path: root/extension/lib/wallet/wxmessaging.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-02-01 15:10:20 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-02-01 15:10:20 +0100
commit42a0076f5951d303635b2e544aa66112cdb9abfe (patch)
tree432874ec0e7dbe6c831992f70a468bc1b6719901 /extension/lib/wallet/wxmessaging.ts
parentb150470eb60017b4ccdf56351428f9452a207fc8 (diff)
new fulfillment protocol
Diffstat (limited to 'extension/lib/wallet/wxmessaging.ts')
-rw-r--r--extension/lib/wallet/wxmessaging.ts10
1 files changed, 3 insertions, 7 deletions
diff --git a/extension/lib/wallet/wxmessaging.ts b/extension/lib/wallet/wxmessaging.ts
index 0ec07dfe1..63310270f 100644
--- a/extension/lib/wallet/wxmessaging.ts
+++ b/extension/lib/wallet/wxmessaging.ts
@@ -83,8 +83,8 @@ function makeHandlers(wallet) {
},
["confirm-pay"]: function(db, detail, sendResponse) {
wallet.confirmPay(detail.offer, detail.merchantPageUrl)
- .then(() => {
- sendResponse({success: true})
+ .then((r) => {
+ sendResponse(r)
})
.catch((e) => {
console.error("exception during 'confirm-pay'");
@@ -96,11 +96,7 @@ function makeHandlers(wallet) {
["execute-payment"]: function(db, detail, sendResponse) {
wallet.doPayment(detail.H_contract)
.then((r) => {
- sendResponse({
- success: true,
- payReq: r.payReq,
- contract: r.contract,
- });
+ sendResponse(r);
})
.catch((e) => {
console.error("exception during 'execute-payment'");