mirror of https://github.com/BTCPrivate/copay.git
paypro: fix more payment protocol errors.
This commit is contained in:
parent
58b9345f59
commit
e06fda5128
|
@ -911,7 +911,8 @@ Wallet.prototype.sendPaymentTx = function(ntxid, options, cb) {
|
||||||
|
|
||||||
var refund_outputs = [];
|
var refund_outputs = [];
|
||||||
|
|
||||||
options.refund_to = options.refund_to || self.getPubKeys()[0];
|
options.refund_to = options.refund_to
|
||||||
|
|| self.publicKeyRing.getPubKeys(0, false, this.getMyCopayerId())[0];
|
||||||
|
|
||||||
if (options.refund_to) {
|
if (options.refund_to) {
|
||||||
var total = 0;
|
var total = 0;
|
||||||
|
@ -942,7 +943,7 @@ Wallet.prototype.sendPaymentTx = function(ntxid, options, cb) {
|
||||||
// We send this to the serve after receiving a PaymentRequest
|
// We send this to the serve after receiving a PaymentRequest
|
||||||
var pay = new PayPro();
|
var pay = new PayPro();
|
||||||
pay = pay.makePayment();
|
pay = pay.makePayment();
|
||||||
var merchant_data = txp.merchant.pd.merchant_data;
|
var merchant_data = txp.merchant.pr.pd.merchant_data;
|
||||||
if (typeof merchant_data === 'string') {
|
if (typeof merchant_data === 'string') {
|
||||||
merchant_data = new Buffer(merchant_data, 'hex');
|
merchant_data = new Buffer(merchant_data, 'hex');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue