paypro: through a lot of debugging. Payment sending is working.

This commit is contained in:
Christopher Jeffrey 2014-08-01 19:45:24 -07:00 committed by Manuel Araoz
commit d9c72392bd
3 changed files with 180 additions and 20 deletions

View file

@ -111,8 +111,12 @@ angular.module('copayApp.controllers').controller('SendController',
$rootScope.pendingPayment = null;
}
var uri = address.indexOf('bitcoin:') === 0
&& copay.HDPath.parseBitcoinURI(address);
var uri;
if (address.indexOf('bitcoin:') === 0) {
uri = copay.HDPath.parseBitcoinURI(address);
} else if (address.indexOf('Merchant: ') === 0) {
uri = { merchant: address.split(' ')[1] };
}
if (uri && uri.merchant) {
w.createPaymentTx({