mirror of https://github.com/BTCPrivate/copay.git
paypro: store total on merchant data specifically for display purposes.
This commit is contained in:
parent
3f6b5ec6b8
commit
1a0f782e6d
|
@ -880,7 +880,8 @@ Wallet.prototype.receivePaymentRequest = function(options, pr, cb) {
|
||||||
merchant_data: merchant_data.toString('hex')
|
merchant_data: merchant_data.toString('hex')
|
||||||
},
|
},
|
||||||
signature: sig,
|
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].v = v;
|
||||||
b.tx.outs[i].s = s;
|
b.tx.outs[i].s = s;
|
||||||
|
|
||||||
|
merchantData.total += v;
|
||||||
});
|
});
|
||||||
|
|
||||||
this.log('');
|
this.log('');
|
||||||
|
|
Loading…
Reference in New Issue