paypro: store total on merchant data specifically for display purposes.

This commit is contained in:
Christopher Jeffrey 2014-07-30 10:59:51 -07:00 committed by Manuel Araoz
commit 1a0f782e6d

View file

@ -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('');