updated code to work with bitpay bch payments

This commit is contained in:
Kadir Sekha 2018-03-01 14:19:52 +05:00
commit 381a4e9f78
5 changed files with 51 additions and 12 deletions

View file

@ -27,7 +27,7 @@ angular.module('copayApp.services').factory('payproService',
payProUrl: uri,
}, function(err, paypro) {
if (!disableLoader) ongoingProcess.set('fetchingPayPro', false);
if (err) return cb(err);
if (err) return cb(gettextCatalog.getString('Could Not Fetch Payment: Check if it is still valid'));
else if (!paypro.verified) {
$log.warn('Failed to verify payment protocol signatures');
return cb(gettextCatalog.getString('Payment Protocol Invalid'));