Commit be44091b5e226115d744b5f78d79a8c0309ab024

Authored by Palak Handa
1 parent 4c87e7b606
Exists in master and in 1 other branch paytm

update

Showing 2 changed files with 8 additions and 5 deletions   Show diff stats
pages/verify.html
... ... @@ -10,7 +10,7 @@
10 10 <h4>Pending Payment</h4>
11 11 </div>
12 12 <div class="clearfix"></div>
13   - <div style="margin:5px 0 5px 0;text-transform: capitalize;">
  13 + <div style="margin:5px 0 5px 0;">
14 14 <div class="col-sm-5 col-xs-6 tital">Email:</div>
15 15 <div class="col-sm-7 col-xs-6">{{data.email}}</div>
16 16 <div class="clearfix"></div>
... ... @@ -24,7 +24,7 @@
24 24 <div class="clearfix"></div>
25 25 <div class="bot-border"></div>
26 26 <div class="col-sm-5 col-xs-6 tital">Status:</div>
27   - <div class="col-sm-7 col-xs-6">{{paymentRecord[0].status}}</div>
  27 + <div class="col-sm-7 col-xs-6" style="text-transform: capitalize;">{{paymentRecord[0].status}}</div>
28 28 <div class="clearfix"></div>
29 29 <div class="bot-border"></div>
30 30 </div>
... ...
... ... @@ -993,6 +993,7 @@
993 993 });
994 994  
995 995 scotchApp.controller('verifyController', function($scope, $http, $location, $route,BASE_URL) {
  996 +
996 997 $scope.pendingPaymentId = $route.current.params.id
997 998 $http({
998 999 method: "GET",
... ... @@ -1008,6 +1009,7 @@
1008 1009 }).then(function mySuccess(response) {
1009 1010 $scope.paymentRecord = response.data;
1010 1011 }, function myError(response) {
  1012 + console.log("response-2", response);
1011 1013 });
1012 1014 }, function myError(response) {
1013 1015 $scope.myWelcome = response.statusText;
... ... @@ -1015,7 +1017,7 @@
1015 1017  
1016 1018 $scope.checkView = false;
1017 1019 $scope.verifyView = false;
1018   -
  1020 + $scope.searchResult = {}
1019 1021 $scope.pendingPaymentId = '';
1020 1022  
1021 1023 $scope.update = function() {
... ... @@ -1060,15 +1062,16 @@
1060 1062 rzp1.open();
1061 1063 $scope.paymentResponse = {};
1062 1064 function createPayment(response) {
1063   - Analytics.trackEvent('payment','Successfully Done',$scope.data.email,$scope.paymentResponse.amount);
1064   - $scope.amount = $scope.amount/100;
1065 1065 console.log("response======retepaymen",response);
  1066 + $scope.amount = $scope.amount/100;
  1067 +
1066 1068 $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id;
1067 1069 $scope.paymentResponse.razorOrderId = $scope.searchResult.razorOrderId;
1068 1070 $scope.paymentResponse.amount = $scope.amount;
1069 1071 $scope.paymentResponse.currency = $scope.searchResult.currency;
1070 1072 $scope.paymentResponse.status = $scope.searchResult.status;
1071 1073 $scope.paymentResponse.applicantId = $scope.searchResult.applicantId;
  1074 + Analytics.trackEvent('payment','Successfully Done',$scope.data.email,$scope.paymentResponse.amount);
1072 1075 console.log("$scope.paymentResponse", $scope.paymentResponse)
1073 1076 $http({
1074 1077 method: 'PUT',
... ...