diff --git a/pages/verify.html b/pages/verify.html
index 62a0475..0f98bda 100644
--- a/pages/verify.html
+++ b/pages/verify.html
@@ -10,7 +10,7 @@
+
Email:
{{data.email}}
@@ -24,7 +24,7 @@
Status:
-
{{paymentRecord[0].status}}
+
{{paymentRecord[0].status}}
diff --git a/script.js b/script.js
index 639a5af..ce9618c 100644
--- a/script.js
+++ b/script.js
@@ -993,6 +993,7 @@
});
scotchApp.controller('verifyController', function($scope, $http, $location, $route,BASE_URL) {
+
$scope.pendingPaymentId = $route.current.params.id
$http({
method: "GET",
@@ -1008,6 +1009,7 @@
}).then(function mySuccess(response) {
$scope.paymentRecord = response.data;
}, function myError(response) {
+ console.log("response-2", response);
});
}, function myError(response) {
$scope.myWelcome = response.statusText;
@@ -1015,7 +1017,7 @@
$scope.checkView = false;
$scope.verifyView = false;
-
+ $scope.searchResult = {}
$scope.pendingPaymentId = '';
$scope.update = function() {
@@ -1060,15 +1062,16 @@
rzp1.open();
$scope.paymentResponse = {};
function createPayment(response) {
- Analytics.trackEvent('payment','Successfully Done',$scope.data.email,$scope.paymentResponse.amount);
- $scope.amount = $scope.amount/100;
console.log("response======retepaymen",response);
+ $scope.amount = $scope.amount/100;
+
$scope.paymentResponse.razorPaymentId = response.razorpay_payment_id;
$scope.paymentResponse.razorOrderId = $scope.searchResult.razorOrderId;
$scope.paymentResponse.amount = $scope.amount;
$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',