fix paypro broadcast. add merchant info

This commit is contained in:
Matias Alejo Garcia 2014-11-20 01:06:30 -03:00
commit 3a0a1a2f23
10 changed files with 155 additions and 90 deletions

View file

@ -256,8 +256,8 @@ Insight.prototype.broadcast = function(rawtx, cb) {
this.requestPost('/api/tx/send', {
rawtx: rawtx
}, function(err, res, body) {
if (err || res.statusCode != 200) cb(err || body);
cb(null, body ? body.txid : null);
if (err || res.statusCode != 200) return cb(err || body);
return cb(null, body ? body.txid : null);
});
};