fixed payment protocol for bitpay payments
This commit is contained in:
parent
3d27054441
commit
a6b447a6eb
1 changed files with 4 additions and 8 deletions
|
|
@ -102,14 +102,10 @@ angular.module('copayApp.services').factory('incomingData', function($log, $stat
|
||||||
if ((/^bitcoin(cash)?:\?r=[\w+]/).exec(data)) {
|
if ((/^bitcoin(cash)?:\?r=[\w+]/).exec(data)) {
|
||||||
var c = data.indexOf('bitcoincash') >= 0 ? 'bch' : 'btc';
|
var c = data.indexOf('bitcoincash') >= 0 ? 'bch' : 'btc';
|
||||||
data = decodeURIComponent(data.replace(/bitcoin(cash)?:\?r=/, ''));
|
data = decodeURIComponent(data.replace(/bitcoin(cash)?:\?r=/, ''));
|
||||||
$state.go('tabs.send', {}, {
|
payproService.getPayProDetails(data, function(err, details) {
|
||||||
'reload': true,
|
if (err) {
|
||||||
'notify': $state.current.name == 'tabs.send' ? false : true
|
popupService.showAlert(gettextCatalog.getString('Error'), err);
|
||||||
}).then(function() {
|
} else handlePayPro(details, coin);
|
||||||
$state.transitionTo('tabs.send.confirm', {
|
|
||||||
coin: c,
|
|
||||||
paypro: data
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue