paypro: remove more unnecessary code.

This commit is contained in:
Christopher Jeffrey 2014-08-01 15:01:43 -07:00 committed by Manuel Araoz
parent 3a73f2453c
commit 53abfcacda
1 changed files with 1 additions and 3 deletions

View File

@ -1012,9 +1012,7 @@ Wallet.prototype.sendPaymentTx = function(ntxid, options, cb) {
var pay = new PayPro();
pay = pay.makePayment();
var merchant_data = txp.merchant.pr.pd.merchant_data;
if (typeof merchant_data === 'string') {
merchant_data = new Buffer(merchant_data, 'hex');
}
merchant_data = new Buffer(merchant_data, 'hex');
pay.set('merchant_data', merchant_data);
pay.set('transactions', [tx.serialize()]);
pay.set('refund_to', refund_outputs);