Commit 89fe83f92c81de321b969941404fe62578da5a7b

Authored by Palak Handa
1 parent 07e435d224
Exists in master and in 1 other branch paytm

amount update

Showing 1 changed file with 17 additions and 6 deletions   Show diff stats
... ... @@ -370,6 +370,7 @@
370 370 $('#alreadyExist').css('display', 'block');
371 371  
372 372 }
  373 + console.log("$scope.data.id",searchResult.data)
373 374 }, function myError(error) {});
374 375 }
375 376 };
... ... @@ -488,7 +489,7 @@
488 489 data: $scope.data,
489 490 headers: {}
490 491 }).then(function mySuccess(result) {
491   - Analytics.trackEvent('applicants', 'click',$scope.data.email ,$scope.data.phone);
  492 + Analytics.trackEvent('applicants', 'click','Users');
492 493 console.log("result", result)
493 494 $scope.detail = result;
494 495 data.applicantId = result.data.id;
... ... @@ -497,15 +498,15 @@
497 498 if($scope.data.citymeetup == "pune"){
498 499 if ($scope.data.stage == "Idea") {
499 500 console.log("$scope.data", $scope.data)
500   - $scope.ticketAmnt = 750;
  501 + $scope.ticketAmnt = 1000;
501 502 }
502 503  
503 504 if ($scope.data.stage == "Product") {
504   - $scope.ticketAmnt = 1500;
  505 + $scope.ticketAmnt = 2000;
505 506 }
506 507  
507 508 if ($scope.data.stage == "Growth") {
508   - $scope.ticketAmnt = 1500;
  509 + $scope.ticketAmnt = 2000;
509 510 }
510 511 }
511 512 else if($scope.data.citymeetup == "mainevent"){
... ... @@ -632,7 +633,7 @@
632 633 $scope.paymentResponse.amount = data.amount;
633 634 $scope.paymentResponse.currency = "INR";
634 635 $scope.paymentResponse.status = $scope.paymentResult.data.status;
635   - Analytics.trackEvent('payment','Successfully Done',$scope.paymentResponse.amount);
  636 + Analytics.trackEvent('payment','Successfully Done',$scope.data.email,$scope.paymentResponse.amount);
636 637 $http({
637 638 method: 'PUT',
638 639 url: BASE_URL + '/payments/' + $scope.paymentResult.data.id,
... ... @@ -829,6 +830,16 @@
829 830 } else {
830 831 $('.icon-circle-d').css('background-color', 'rgb(66, 181, 73)');
831 832 }
  833 +// $http({
  834 +// method: 'GET',
  835 +// url: BASE_URL + '/applicants?filter={"where": {"email": '+email+'%25}}'
  836 +// // headers: {}
  837 +// }).then(function mySuccess(searchResult) {
  838 +// console.log("email===>", searchResult.id)
  839 +// $scope.getid = searchResult.id;
  840 +// abc?id
  841 +// });
  842 +
832 843 }
833 844  
834 845 $scope.textCheck = function(){
... ... @@ -1058,7 +1069,7 @@
1058 1069 rzp1.open();
1059 1070 $scope.paymentResponse = {};
1060 1071 function createPayment(response) {
1061   - Analytics.trackEvent('payment','Successfully Done',$scope.paymentResponse.amount);
  1072 + Analytics.trackEvent('payment','Successfully Done',$scope.data.email,$scope.paymentResponse.amount);
1062 1073 $scope.amount = $scope.amount / 100;
1063 1074 console.log("response======retepaymen",response);
1064 1075 $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id;
... ...