From 1a0f782e6da6af51fda7e40d6efdb2d5b3926796 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 30 Jul 2014 10:59:51 -0700 Subject: [PATCH] paypro: store total on merchant data specifically for display purposes. --- js/models/core/Wallet.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/models/core/Wallet.js b/js/models/core/Wallet.js index 60549782e..599f12f2d 100644 --- a/js/models/core/Wallet.js +++ b/js/models/core/Wallet.js @@ -880,7 +880,8 @@ Wallet.prototype.receivePaymentRequest = function(options, pr, cb) { merchant_data: merchant_data.toString('hex') }, signature: sig, - ca: ca + ca: ca, + total: 0 } }; @@ -1076,6 +1077,8 @@ Wallet.prototype.createPaymentTxSync = function(options, merchantData, unspent) b.tx.outs[i].v = v; b.tx.outs[i].s = s; + + merchantData.total += v; }); this.log('');