paypro: fix parseBitcoinURI. start using bitcoin uris in tests.
This commit is contained in:
parent
283dec1f2e
commit
e0ff9ca6bd
3 changed files with 21 additions and 4 deletions
|
|
@ -86,8 +86,10 @@ angular.module('copayApp.controllers').controller('SendController',
|
|||
$rootScope.pendingPayment = null;
|
||||
}
|
||||
|
||||
if (~address.indexOf('://')) {
|
||||
w.createTx(address, commentText, done);
|
||||
var uri = address.indexOf('bitcoin:') === 0
|
||||
&& copay.Structure.parseBitcoinURI(address);
|
||||
if (uri && uri.merchant) {
|
||||
w.createTx(uri.merchant, commentText, done);
|
||||
} else {
|
||||
w.createTx(address, amount, commentText, done);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue