From 42a0076f5951d303635b2e544aa66112cdb9abfe Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 1 Feb 2016 15:10:20 +0100 Subject: new fulfillment protocol --- extension/lib/wallet/wxmessaging.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'extension/lib/wallet/wxmessaging.js') 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'"); -- cgit v1.2.3