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
parent 3f6b5ec6b8
commit 1a0f782e6d
1 changed files with 4 additions and 1 deletions

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