Revert "paypro: remove debug code."

This reverts commit 019283e04cb6b25f6431cb56f02618c6d9e7fe90.
This commit is contained in:
Christopher Jeffrey 2014-07-31 17:04:24 -07:00 committed by Manuel Araoz
parent 28459c2d4e
commit a9b522888e
1 changed files with 9 additions and 0 deletions

View File

@ -1015,6 +1015,9 @@ Wallet.prototype.receivePaymentRequest = function(options, pr, cb) {
total: bignum('0', 10).toString(10)
};
console.log('receivePaymentRequest');
console.log(merchantData);
return this.getUnspent(function(err, unspent) {
if (options.fetch) {
self.createPaymentTxSync(options, merchantData, unspent);
@ -1187,6 +1190,9 @@ Wallet.prototype.createPaymentTxSync = function(options, merchantData, unspent)
var signed = b.sign(keys);
}
console.log('createPaymentTxSync:1');
console.log(merchantData);
if (typeof merchantData.total === 'string') {
merchantData.total = bignum(merchantData.total, 10);
}
@ -1227,6 +1233,9 @@ Wallet.prototype.createPaymentTxSync = function(options, merchantData, unspent)
merchantData.total = merchantData.total.toString(10);
console.log('createPaymentTxSync:2');
console.log(merchantData);
if (options.fetch) return;
this.log('');