paypro: temporarily disable, with comments.
This commit is contained in:
parent
e0ccb24b93
commit
b6fa32dcfa
1 changed files with 25 additions and 17 deletions
|
|
@ -111,23 +111,26 @@ angular.module('copayApp.controllers').controller('SendController',
|
||||||
$rootScope.pendingPayment = null;
|
$rootScope.pendingPayment = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
var uri;
|
// XXX Payment Protocol is temporarily disabled.
|
||||||
if (address.indexOf('bitcoin:') === 0) {
|
// var uri;
|
||||||
uri = new bitcore.BIP21(address).data;
|
// if (address.indexOf('bitcoin:') === 0) {
|
||||||
} else if (/^https?:\/\//.test(address)) {
|
// uri = new bitcore.BIP21(address).data;
|
||||||
uri = {
|
// } else if (/^https?:\/\//.test(address)) {
|
||||||
merchant: address
|
// uri = {
|
||||||
};
|
// merchant: address
|
||||||
}
|
// };
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// if (uri && uri.merchant) {
|
||||||
|
// w.createPaymentTx({
|
||||||
|
// uri: uri.merchant,
|
||||||
|
// memo: commentText
|
||||||
|
// }, done);
|
||||||
|
// } else {
|
||||||
|
// w.createTx(address, amount, commentText, done);
|
||||||
|
// }
|
||||||
|
|
||||||
if (uri && uri.merchant) {
|
w.createTx(address, amount, commentText, done);
|
||||||
w.createPaymentTx({
|
|
||||||
uri: uri.merchant,
|
|
||||||
memo: commentText
|
|
||||||
}, done);
|
|
||||||
} else {
|
|
||||||
w.createTx(address, amount, commentText, done);
|
|
||||||
}
|
|
||||||
|
|
||||||
// reset fields
|
// reset fields
|
||||||
$scope.address = $scope.amount = $scope.commentText = null;
|
$scope.address = $scope.amount = $scope.commentText = null;
|
||||||
|
|
@ -503,4 +506,9 @@ angular.module('copayApp.controllers').controller('SendController',
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// XXX Payment Protocol is temporarily disabled.
|
||||||
|
$scope.onChanged = function() {
|
||||||
|
;
|
||||||
|
};
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue