Fix paypro error

This commit is contained in:
Gustavo Maximiliano Cortez 2016-08-03 15:48:49 -03:00
parent 5890bea48f
commit dda9a994b7
No known key found for this signature in database
GPG Key ID: 15EDAD8D9F2EB1AF
1 changed files with 2 additions and 0 deletions

View File

@ -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() {