diff --git a/src/js/controllers/confirm.js b/src/js/controllers/confirm.js index aee55ad26..9d8165758 100644 --- a/src/js/controllers/confirm.js +++ b/src/js/controllers/confirm.js @@ -15,7 +15,6 @@ angular.module('copayApp.controllers').controller('confirmController', function( $scope.toEmail = data.stateParams.toEmail; $scope.description = data.stateParams.description; $scope.paypro = data.stateParams.paypro; - $scope._paypro = $scope.paypro; $scope.paymentExpired = { value: false }; @@ -287,7 +286,7 @@ angular.module('copayApp.controllers').controller('confirmController', function( }; $scope.approve = function(onSendStatusChange) { - if ($scope._paypro && $scope.paymentExpired.value) { + if ($scope.paypro && $scope.paymentExpired.value) { popupService.showAlert(null, gettextCatalog.getString('The payment request has expired')); $scope.sendStatus = ''; $timeout(function() { diff --git a/src/js/routes.js b/src/js/routes.js index a3352836d..e7017cc41 100644 --- a/src/js/routes.js +++ b/src/js/routes.js @@ -885,7 +885,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr } }) .state('tabs.bitpayCard.confirm', { - url: '/confirm/:cardId/:toAddress/:toName/:toAmount/:toEmail/:description/:payProUrl', + url: '/confirm/:cardId/:toAddress/:toName/:toAmount/:toEmail/:description/:paypro', views: { 'tab-home@tabs': { controller: 'confirmController', diff --git a/src/js/services/incomingData.js b/src/js/services/incomingData.js index 30df1f9c5..a83232771 100644 --- a/src/js/services/incomingData.js +++ b/src/js/services/incomingData.js @@ -1,6 +1,6 @@ 'use strict'; -angular.module('copayApp.services').factory('incomingData', function($log, $state, $window, $timeout, bitcore, profileService, popupService, ongoingProcess, platformInfo, gettextCatalog, $rootScope, payproService) { +angular.module('copayApp.services').factory('incomingData', function($log, $state, $window, $timeout, bitcore, $rootScope, payproService) { var root = {}; @@ -47,7 +47,6 @@ angular.module('copayApp.services').factory('incomingData', function($log, $stat } data = sanitizeUri(data); - //data = 'https://test.bitpay.com:443/i/YSHFLkxxVAZhQMGFi9Ptq9'; // BIP21 if (bitcore.URI.isValid(data)) { diff --git a/src/js/services/payproService.js b/src/js/services/payproService.js index a8796ba62..ba5adb4b9 100644 --- a/src/js/services/payproService.js +++ b/src/js/services/payproService.js @@ -1,7 +1,7 @@ 'use strict'; angular.module('copayApp.services').factory('payproService', -function($window, profileService, platformInfo, popupService, gettextCatalog, ongoingProcess, $log, $state) { +function($window, profileService, platformInfo, popupService, gettextCatalog, ongoingProcess, $log) { var ret = {};