mirror of https://github.com/BTCPrivate/copay.git
Revert "paypro: temporarily disable, with comments."
This reverts commit b6fa32dcfa
.
This commit is contained in:
parent
6a1cd3b688
commit
4ce1c113e5
|
@ -169,26 +169,23 @@ angular.module('copayApp.controllers').controller('SendController',
|
||||||
$rootScope.pendingPayment = null;
|
$rootScope.pendingPayment = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// XXX Payment Protocol is temporarily disabled.
|
var uri;
|
||||||
// var uri;
|
if (address.indexOf('bitcoin:') === 0) {
|
||||||
// if (address.indexOf('bitcoin:') === 0) {
|
uri = new bitcore.BIP21(address).data;
|
||||||
// uri = new bitcore.BIP21(address).data;
|
} else if (/^https?:\/\//.test(address)) {
|
||||||
// } else if (/^https?:\/\//.test(address)) {
|
uri = {
|
||||||
// uri = {
|
merchant: address
|
||||||
// merchant: address
|
};
|
||||||
// };
|
}
|
||||||
// }
|
|
||||||
//
|
|
||||||
// if (uri && uri.merchant) {
|
|
||||||
// w.createPaymentTx({
|
|
||||||
// uri: uri.merchant,
|
|
||||||
// memo: commentText
|
|
||||||
// }, done);
|
|
||||||
// } else {
|
|
||||||
// w.createTx(address, amount, commentText, done);
|
|
||||||
// }
|
|
||||||
|
|
||||||
w.createTx(address, amount, commentText, done);
|
if (uri && uri.merchant) {
|
||||||
|
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;
|
||||||
|
@ -564,9 +561,4 @@ angular.module('copayApp.controllers').controller('SendController',
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// XXX Payment Protocol is temporarily disabled.
|
|
||||||
$scope.onChanged = function() {
|
|
||||||
;
|
|
||||||
};
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue