mirror of https://github.com/BTCPrivate/copay.git
Fix paypro error
This commit is contained in:
parent
5890bea48f
commit
dda9a994b7
|
@ -98,6 +98,7 @@ angular.module('copayApp.controllers').controller('buyAmazonController',
|
|||
}, function(err, paypro) {
|
||||
|
||||
if (err) {
|
||||
ongoingProcess.set('Processing Transaction...', false);
|
||||
$log.warn('Could not fetch payment request:', err);
|
||||
var msg = err.toString();
|
||||
if (msg.match('HTTP')) {
|
||||
|
@ -111,6 +112,7 @@ angular.module('copayApp.controllers').controller('buyAmazonController',
|
|||
}
|
||||
|
||||
if (!paypro.verified) {
|
||||
ongoingProcess.set('Processing Transaction...', false);
|
||||
$log.warn('Failed to verify payment protocol signatures');
|
||||
self.error = gettext('Payment Protocol Invalid');
|
||||
$timeout(function() {
|
||||
|
|
Loading…
Reference in New Issue