From 8ecb55ed6d1d95da4ce3e732e13cdb56e4ca03ce Mon Sep 17 00:00:00 2001 From: palak Date: Sat, 11 Nov 2017 19:27:43 +0530 Subject: [PATCH] update --- script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script.js b/script.js index 15c9051..11039af 100644 --- a/script.js +++ b/script.js @@ -992,7 +992,7 @@ }); - scotchApp.controller('verifyController', function($scope, $http, $location, $route,BASE_URL) { + scotchApp.controller('verifyController', function($scope, $http, $location, $route, BASE_URL, Analytics) { $scope.pendingPaymentId = $route.current.params.id $http({ @@ -1071,7 +1071,6 @@ $scope.paymentResponse.currency = $scope.searchResult.currency; $scope.paymentResponse.status = $scope.searchResult.status; $scope.paymentResponse.applicantId = $scope.searchResult.applicantId; - Analytics.trackEvent('payment','Successfully Done',$scope.data.email,$scope.paymentResponse.amount); console.log("$scope.paymentResponse", $scope.paymentResponse) $http({ method: 'PUT', @@ -1085,6 +1084,7 @@ // } console.log("finalsearchResult",searchResult) $location.path("/confirmation") + Analytics.trackEvent('payment','Successfully Done',$scope.data.email,$scope.paymentResponse.amount); }, function myError(error) { }); -- 2.0.0