Commit 04fc146ee89f567c633707b094630915a3d3292d

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

change Base_url

Showing 2 changed files with 21 additions and 17 deletions   Show diff stats
pages/verify.html
1 <div class="panel-heading" style="background-color: #42b549;"><img src="images/white.png" style="width: 100px;"></div> 1 <div class="panel-heading" style="background-color: #42b549;"><img src="images/white.png" style="width: 100px;"></div>
2 <div class="container container1"> 2 <div class="container container1">
3 <div class="row"> 3 <div class="row">
4 <div class="col-md-6 col-md-offset-3"> 4 <div class="col-md-6 col-md-offset-3">
5 <div class="panel panel-default"> 5 <div class="panel panel-default">
6 <div class="panel-body"> 6 <div class="panel-body">
7 <div class="box box-info"> 7 <div class="box box-info">
8 <div class="box-body"> 8 <div class="box-body">
9 <div class="card" style="width: 33%;margin: 5% 33%"> 9 <div class="card" style="width: 33%;margin: 5% 33%">
10 <img alt="User Pic" src="https://x1.xingassets.com/assets/frontend_minified/img/users/nobody_m.original.jpg" id="profile-image1" class="img-circle img-responsive" style="width: 100px;margin-left: 20%;margin-bottom: 1%;"> 10 <div style="padding: 0% 20% 16%;">
11 <div class="container container1"> 11 <img class="irc_mi" src="https://www.chemie.uni-hamburg.de/lc/fischer/mitarbeiter/Personschematisch.jpg" style="margin-bottom:1%; width:100%;">
12 <div class="col-sm-6">
13 <label style="color:#837F7E;margin:36% 58%;font-size:22px">{{data.name}}</label>
14 </div> 12 </div>
15 </div> 13 <!-- <div class="container container1"> -->
14 <!-- <div class="col-sm-6">
15 <label style="color:#837F7E;margin:36% 58%;font-size:22px">{{data.name}}</label>
16 </div> -->
17 <!-- </div> -->
16 </div> 18 </div>
17 <div class="clearfix"></div> 19 <div class="clearfix"></div>
18 <div style="margin:5px 0 5px 0;"> 20 <div style="margin:5px 0 5px 0">
19 <div class="col-sm-5 col-xs-6 tital">Name:</div> 21 <div class="col-sm-5 col-xs-6 tital" align="center" style="padding-left:23%">Name:</div>
20 <div class="col-sm-7 col-xs-6 ">{{data.name}}</div> 22 <div class="col-sm-7 col-xs-6" style="padding-left:22%">{{data.name}}</div>
21 <div class="clearfix"></div> 23 <div class="clearfix"></div>
22 <div class="bot-border"></div> 24 <div class="bot-border"></div>
23 <div class="col-sm-5 col-xs-6 tital " >Amount:</div> 25 <div class="col-sm-5 col-xs-6 tital" align="center" style="padding-left:23%">Amount:</div>
24 <div class="col-sm-7">{{paymentRecord[0].amount}}</div> 26 <div class="col-sm-7" style="padding-left:22%">{{paymentRecord[0].amount}}</div>
25 <div class="clearfix"></div> 27 <div class="clearfix"></div>
26 <div class="bot-border"></div> 28 <div class="bot-border"></div>
27 <div class="col-sm-5 col-xs-6 tital " >Currency:</div> 29 <div class="col-sm-5 col-xs-6 tital" align="center" style="padding-left:23%">Currency:</div>
28 <div class="col-sm-7">INR</div> 30 <div class="col-sm-7" style="padding-left:22%">INR</div>
29 <div class="clearfix"></div> 31 <div class="clearfix"></div>
30 <div class="bot-border"></div> 32 <div class="bot-border"></div>
31 <div class="col-sm-5 col-xs-6 tital " >Status:</div> 33 <div class="col-sm-5 col-xs-6 tital" align="center" style="padding-left:23%">Status:</div>
32 <div class="col-sm-7">{{paymentRecord[0].status}}</div> 34 <div class="col-sm-7" style="padding-left:22%">{{paymentRecord[0].status}}</div>
33 <div class="clearfix"></div> 35 <div class="clearfix"></div>
34 <div class="bot-border"></div> 36 <div class="bot-border"></div>
35 </div> 37 </div>
36 <!-- /.box --> 38 <!-- /.box -->
37 39
38 </div> 40 </div>
39 </div> 41 </div>
40 <div style="text-align:center; margin: 4% 4%;"> 42 <div style="text-align:center; margin: 4% 4%;">
41 <input type="button" class="btn submit-button" value="payment" ng-click="update()"> 43 <input type="button" class="btn submit-button" value="payment" ng-click="update()">
42 </div> 44 </div>
43 </div> 45 </div>
44 </div> 46 </div>
45 47
46 <script> 48 <script>
47 $(function() { 49 $(function() {
48 $('#profile-image1').on('click', function() { 50 $('#profile-image1').on('click', function() {
49 $('#profile-image-upload').click(); 51 $('#profile-image-upload').click();
50 }); 52 });
51 }); 53 });
52 </script> 54 </script>
53 </div> 55 </div>
54 </div> 56 </div>
55 </div> 57 </div>
56 <div class="clearfix"></div> 58 <div class="clearfix"></div>
57 <footer> 59 <footer>
58 <img id="footer" class="img-responsive banner"> 60 <img id="footer" class="img-responsive banner">
59 <center class="footer"> Powered By <a class="footer-link" href="http://www.viithiisys.com/" target="_blank">Viithiisys Technolgies.</a> 61 <center class="footer"> Powered By <a class="footer-link" href="http://www.viithiisys.com/" target="_blank">Viithiisys Technolgies.</a>
60 </center> 62 </center>
61 </footer> 63 </footer>
62 64
1 // create the module and name it scotchApp 1 // create the module and name it scotchApp
2 var scotchApp = angular.module('scotchApp', ['ngRoute']); 2 var scotchApp = angular.module('scotchApp', ['ngRoute']);
3 3
4 // configure our routes 4 // configure our routes
5 scotchApp.config(function($routeProvider) { 5 scotchApp.config(function($routeProvider) {
6 $routeProvider 6 $routeProvider
7 7
8 // route for the home page 8 // route for the home page
9 .when('/', { 9 .when('/', {
10 templateUrl : 'pages/home.html', 10 templateUrl : 'pages/home.html',
11 controller : 'mainController' 11 controller : 'mainController'
12 }) 12 })
13 13
14 // route for the about page 14 // route for the about page
15 .when('/verification/=:id', { 15 .when('/verification/=:id', {
16 templateUrl : 'pages/verify.html', 16 templateUrl : 'pages/verify.html',
17 controller : 'verifyController' 17 controller : 'verifyController'
18 }) 18 })
19 }); 19 });
20 20
21 // create the controller and inject Angular's $scope 21 // create the controller and inject Angular's $scope
22 scotchApp.controller('mainController', function($scope, $http, $location,$route) { 22 scotchApp.controller('mainController', function($scope, $http, $location,$route) {
23 23
24 $scope.data = { 24 $scope.data = {
25 show: true, 25 show: true,
26 hide: false 26 hide: false
27 }; 27 };
28 28
29 $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ 29 $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/
30 30
31 $scope.max = 100; 31 $scope.max = 100;
32 $scope.current = 0; 32 $scope.current = 0;
33 $scope.payingAmnt = 0; 33 $scope.payingAmnt = 0;
34 if ($scope.data.stage == 'select') { 34 if ($scope.data.stage == 'select') {
35 console.log("sdsaasd"); 35 console.log("sdsaasd");
36 36
37 } 37 }
38 38
39 $scope.author = 'Swarn Singh'; 39 $scope.author = 'Swarn Singh';
40 $scope.data = {}; 40 $scope.data = {};
41 //$scope.data.stage = 'idea'; 41 //$scope.data.stage = 'idea';
42 //$scope.data.email = ''; 42 //$scope.data.email = '';
43 $scope.check = false; 43 $scope.check = false;
44 $scope.numberCheck = false; 44 $scope.numberCheck = false;
45 $scope.paymentResult = {}; 45 $scope.paymentResult = {};
46 var BASE_URL = "http://139.59.68.74:4001/api"; 46 var BASE_URL = "http://139.59.68.74:4001/api";
47 var data ={ 47 var data ={
48 "amount":$scope.payingAmnt, 48 "amount":$scope.payingAmnt,
49 "currency": "INR", 49 "currency": "INR",
50 "status": "pending" 50 "status": "pending"
51 } 51 }
52 52
53 $scope.removeError = function(){ 53 $scope.removeError = function(){
54 $('#invalidEmail').css('display', 'none'); 54 $('#invalidEmail').css('display', 'none');
55 $('#alreadyExist').css('display', 'none'); 55 $('#alreadyExist').css('display', 'none');
56 }; 56 };
57 57
58 $scope.emailcheck = function(val){ 58 $scope.emailcheck = function(val){
59 //console.log('val', val); 59 //console.log('val', val);
60 if (val == undefined) { 60 if (val == undefined) {
61 $('#invalidEmail').css('display', 'block'); 61 $('#invalidEmail').css('display', 'block');
62 }else{ 62 }else{
63 $http({ 63 $http({
64 method: 'GET', 64 method: 'GET',
65 url: BASE_URL+'/applicants?filter={"where": {"email": {"like":"%25' + $scope.data.email + '%25"}}}', 65 url: BASE_URL+'/applicants?filter={"where": {"email": {"like":"%25' + $scope.data.email + '%25"}}}',
66 //data: email, 66 //data: email,
67 headers: {} 67 headers: {}
68 }).then(function mySuccess(searchResult) { 68 }).then(function mySuccess(searchResult) {
69 console.log("searchResult1===>",searchResult) 69 console.log("searchResult1===>",searchResult)
70 if(searchResult.data.length == 0){ 70 if(searchResult.data.length == 0){
71 $scope.check = false; 71 $scope.check = false;
72 }else{ 72 }else{
73 $scope.check = true; 73 $scope.check = true;
74 $('#alreadyExist').css('display', 'block'); 74 $('#alreadyExist').css('display', 'block');
75 } 75 }
76 }, function myError(error) { 76 }, function myError(error) {
77 }); 77 });
78 } 78 }
79 }; 79 };
80 80
81 $scope.removeNoError = function(){ 81 $scope.removeNoError = function(){
82 $('#noExist').css('display', 'none'); 82 $('#noExist').css('display', 'none');
83 }; 83 };
84 84
85 $scope.numbercheck = function(number){ 85 $scope.numbercheck = function(number){
86 $http({ 86 $http({
87 method: 'GET', 87 method: 'GET',
88 url: BASE_URL+'/applicants?filter={"where": {"phone": {"like":"%25'+number+'%25"}}}', 88 url: BASE_URL+'/applicants?filter={"where": {"phone": {"like":"%25'+number+'%25"}}}',
89 data: $scope.data, 89 data: $scope.data,
90 headers: {} 90 headers: {}
91 }).then(function mySuccess(searchResult) { 91 }).then(function mySuccess(searchResult) {
92 console.log("searchResult===>",searchResult) 92 console.log("searchResult===>",searchResult)
93 if(searchResult.data.length == 0){ 93 if(searchResult.data.length == 0){
94 $scope.numberCheck = false; 94 $scope.numberCheck = false;
95 }else{ 95 }else{
96 $scope.numberCheck = true; 96 $scope.numberCheck = true;
97 $('#noExist').css('display', 'block'); 97 $('#noExist').css('display', 'block');
98 } 98 }
99 }, function myError(error) { 99 }, function myError(error) {
100 }); 100 });
101 }; 101 };
102 102
103 /*THIS CODE FOR ENABLED SUBMIT BUTTON AFTER UPLOAD IMAGE*/ 103 /*THIS CODE FOR ENABLED SUBMIT BUTTON AFTER UPLOAD IMAGE*/
104 $(document).ready( 104 $(document).ready(
105 function(){ 105 function(){
106 $('input:submit').attr('disabled',true); 106 $('input:submit').attr('disabled',true);
107 $('input:file').change( 107 $('input:file').change(
108 function(){ 108 function(){
109 if ($("#picture").val()){ 109 if ($("#picture").val()){
110 $('input:submit').removeAttr('disabled'); 110 $('input:submit').removeAttr('disabled');
111 } 111 }
112 else { 112 else {
113 $('input:submit').attr('disabled',true); 113 $('input:submit').attr('disabled',true);
114 } 114 }
115 }); 115 });
116 }); 116 });
117 117
118 /*****THIS IS FOR STEP ONE FORM ******/ 118 /*****THIS IS FOR STEP ONE FORM ******/
119 $scope.next = function() { 119 $scope.next = function() {
120 var BASE_URL = "http://139.59.68.74:4001/api";
120 $scope.data.status = null 121 $scope.data.status = null
121 if ($scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined || $scope.data.city == undefined) { 122 if ($scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined || $scope.data.city == undefined) {
122 var x = document.getElementById("snackbar") 123 var x = document.getElementById("snackbar")
123 x.className = "show"; 124 x.className = "show";
124 setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000); 125 setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000);
125 }else if($scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined && $scope.data.city != undefined) { 126 }else if($scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined && $scope.data.city != undefined) {
126 $scope.infoForm = true; 127 $scope.infoForm = true;
127 console.log("sdasdasdsa"); 128 console.log("sdasdasdsa");
128 $scope.data.stage = $scope.data.stage; 129 $scope.data.stage = $scope.data.stage;
129 $scope.detail = {}; 130 $scope.detail = {};
130 $scope.data.phone = "+91"+$scope.data.number; 131 $scope.data.phone = "+91"+$scope.data.number;
131 $http({ 132 $http({
132 method: 'POST', 133 method: 'POST',
133 url: BASE_URL+'/information', 134 url: BASE_URL+'/information',
134 data: $scope.data, 135 data: $scope.data,
135 headers: {} 136 headers: {}
136 }).then(function mySuccess(result) { 137 }).then(function mySuccess(result) {
137 console.log("result",result) 138 console.log("result",result)
138 $scope.detail = result; 139 $scope.detail = result;
139 data.applicantId = result.data.id; 140 data.applicantId = result.data.id;
140 $scope.userId = result.data.id; 141 $scope.userId = result.data.id;
141 142
142 }, function myError(error) { 143 }, function myError(error) {
143 }); 144 });
144 } 145 }
145 146
146 } 147 }
147 148
148 /*****THIS IS FOR STEP THREE FORM ******/ 149 /*****THIS IS FOR STEP THREE FORM ******/
149 $scope.create = function() { 150 $scope.create = function() {
150 console.log("$scope.data.identity",$scope.data.identity) 151 console.log("$scope.data.identity",$scope.data.identity)
151 if($scope.data.stage == "Idea"){ 152 if($scope.data.stage == "Idea"){
152 console.log("$scope.data",$scope.data) 153 console.log("$scope.data",$scope.data)
153 if($scope.data.identity == "student"){ 154 if($scope.data.identity == "student"){
154 $scope.payingAmnt = 50000; 155 $scope.payingAmnt = 50000;
155 }else{ 156 }else{
156 $scope.payingAmnt = 100000; 157 $scope.payingAmnt = 100000;
157 } 158 }
158 } 159 }
159 160
160 if($scope.data.stage == "Product"){ 161 if($scope.data.stage == "Product"){
161 if($scope.data.identity == "student"){ 162 if($scope.data.identity == "student"){
162 $scope.payingAmnt = 100000; 163 $scope.payingAmnt = 100000;
163 }else{ 164 }else{
164 $scope.payingAmnt = 200000; 165 $scope.payingAmnt = 200000;
165 } 166 }
166 } 167 }
167 168
168 if($scope.data.stage == "Growth"){ 169 if($scope.data.stage == "Growth"){
169 if($scope.data.identity == "student"){ 170 if($scope.data.identity == "student"){
170 $scope.payingAmnt = 250000; 171 $scope.payingAmnt = 250000;
171 }else{ 172 }else{
172 $scope.payingAmnt = 500000; 173 $scope.payingAmnt = 500000;
173 } 174 }
174 } 175 }
175 176
176 177
177 if ($scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined) { 178 if ($scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined) {
178 var x = document.getElementById("snackbar") 179 var x = document.getElementById("snackbar")
179 x.className = "show"; 180 x.className = "show";
180 setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000); 181 setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000);
181 }else if($scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined) { 182 }else if($scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined) {
182 183
183 184 var BASE_URL = "http://139.59.68.74:4001/api";
185
184 if($scope.data.identity == "student"){ 186 if($scope.data.identity == "student"){
185 187
186
187 var image = BASE_URL+'/container1s/proof/download/' 188 var image = BASE_URL+'/container1s/proof/download/'
188 console.log("image",image) 189 console.log("image",image)
189 var image = document.getElementById('picture').files[0]; 190 var image = document.getElementById('picture').files[0];
190 var imagePath = image.name; 191 var imagePath = image.name;
191 $scope.NewIamge = image + imagePath; 192 $scope.NewIamge = image + imagePath;
192 $scope.data.pic = $scope.NewIamge; 193 $scope.data.pic = $scope.NewIamge;
193 var fd = new FormData() 194 var fd = new FormData()
194 fd.append('file',image); 195 fd.append('file',image);
195 $http({ 196 $http({
196 method:'POST', 197 method:'POST',
197 url: BASE_URL+'/container1s/proof/upload', 198 url: BASE_URL+'/container1s/proof/upload',
198 data:fd, 199 data:fd,
199 transformRequest:angular.identity, 200 transformRequest:angular.identity,
200 headers:{'Content-Type':undefined} 201 headers:{'Content-Type':undefined}
201 }).then(function mySuccess(sucessResponse) { 202 }).then(function mySuccess(sucessResponse) {
202 203
203 204
204 }, function myError(error) { 205 }, function myError(error) {
205 }); 206 });
206 207
207 } 208 }
208 209 var BASE_URL = "http://139.59.68.74:4001/api";
210 console.log("BASE_URL",BASE_URL)
209 $scope.infoForm = true; 211 $scope.infoForm = true;
210 console.log("sdasdasdsa"); 212 console.log("sdasdasdsa");
211 $scope.data.stage = $scope.data.stage; 213 $scope.data.stage = $scope.data.stage;
212 $scope.detail = {}; 214 $scope.detail = {};
213 $scope.data.phone = "+91"+$scope.data.number; 215 $scope.data.phone = "+91"+$scope.data.number;
214 $http({ 216 $http({
215 method: 'POST', 217 method: 'POST',
216 url: BASE_URL+'/applicants', 218 url: BASE_URL+'/applicants',
217 data: $scope.data, 219 data: $scope.data,
218 headers: {} 220 headers: {}
219 }).then(function mySuccess(result) { 221 }).then(function mySuccess(result) {
220 222
221 console.log("=====result=====",result) 223 console.log("=====result=====",result)
222 $scope.detail = result; 224 $scope.detail = result;
223 data.applicantId = result.data.id; 225 data.applicantId = result.data.id;
224 $scope.userId = result.data.id; 226 $scope.userId = result.data.id;
225 console.log("=====data=====",data) 227 console.log("=====data=====",data)
226 data.amount = $scope.payingAmnt /100; 228 data.amount = $scope.payingAmnt /100;
227 if($scope.detail != null){ 229 if($scope.detail != null){
228 $http({ 230 $http({
229 method: 'POST', 231 method: 'POST',
230 url: BASE_URL+'/payments', 232 url: BASE_URL+'/payments',
231 data: data, 233 data: data,
232 headers: {} 234 headers: {}
233 }).then(function mySuccess(paymentResult) { 235 }).then(function mySuccess(paymentResult) {
234 $scope.paymentResult = paymentResult; 236 $scope.paymentResult = paymentResult;
235 }, function myError(error) { 237 }, function myError(error) {
236 }); 238 });
237 } 239 }
238 var i = 0; 240 var i = 0;
239 var options = { 241 var options = {
240 "key": "rzp_test_YwHsVFiDIQ2WUQ", 242 "key": "rzp_test_YwHsVFiDIQ2WUQ",
241 "amount": $scope.payingAmnt, 243 "amount": $scope.payingAmnt,
242 244
243 "name": "Startup Jalsa", 245 "name": "Startup Jalsa",
244 "description":"amount", 246 "description":"amount",
245 "currency": "INR", 247 "currency": "INR",
246 "status": "done", 248 "status": "done",
247 249
248 "theme": { 250 "theme": {
249 "color": "#2196f3 ", 251 "color": "#2196f3 ",
250 "image_padding":"NO" 252 "image_padding":"NO"
251 }, 253 },
252 "modal": { 254 "modal": {
253 "ondismiss": function(){ 255 "ondismiss": function(){
254 } 256 }
255 }, 257 },
256 "handler": function (response){ 258 "handler": function (response){
257 createPayment(response); 259 createPayment(response);
258 } 260 }
259 }; 261 };
260 var rzp1 = new Razorpay(options); 262 var rzp1 = new Razorpay(options);
261 rzp1.open(); 263 rzp1.open();
262 $scope.paymentResponse = {}; 264 $scope.paymentResponse = {};
263 function createPayment(response){ 265 function createPayment(response){
264 $route.reload(); 266 $route.reload();
265 $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id; 267 $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id;
266 $scope.paymentResponse.razorOrderId = $scope.paymentResult.data.razorOrderId; 268 $scope.paymentResponse.razorOrderId = $scope.paymentResult.data.razorOrderId;
267 $scope.paymentResponse.amount = data.amount; 269 $scope.paymentResponse.amount = data.amount;
268 $scope.paymentResponse.currency = "INR"; 270 $scope.paymentResponse.currency = "INR";
269 $scope.paymentResponse.status = "captured"; 271 $scope.paymentResponse.status = "captured";
270 $http({ 272 $http({
271 method: 'PUT', 273 method: 'PUT',
272 url: BASE_URL+'/payments/'+$scope.paymentResult.data.id, 274 url: BASE_URL+'/payments/'+$scope.paymentResult.data.id,
273 data: $scope.paymentResponse, 275 data: $scope.paymentResponse,
274 headers: {} 276 headers: {}
275 }).then(function mySuccess(searchResult) { 277 }).then(function mySuccess(searchResult) {
276 console.log("searchResult",searchResult) 278 console.log("searchResult",searchResult)
277 $scope.showToastr() 279 $scope.showToastr()
278 //toaster.success("Registration done successfully"); 280 //toaster.success("Registration done successfully");
279 281
280 }, function myError(error) { 282 }, function myError(error) {
281 }); 283 });
282 } 284 }
283 285
284 }, function myError(error) { 286 }, function myError(error) {
285 }); 287 });
286 } 288 }
287 289
288 } 290 }
289 291
290 $scope.showToastr = function(){ 292 $scope.showToastr = function(){
291 console.log("called toast") 293 console.log("called toast")
292 var x = document.getElementById("snacsskbar") 294 var x = document.getElementById("snacsskbar")
293 x.className = "show"; 295 x.className = "show";
294 setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000); 296 setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000);
295 } 297 }
296 298
297 // $scope.lastpage = function(){ 299 // $scope.lastpage = function(){
298 // console.log("sdasd"); 300 // console.log("sdasd");
299 // $('.sectors-card').css('display', 'inherit'); 301 // $('.sectors-card').css('display', 'inherit');
300 // $('.form-all').css('display', 'inherit'); 302 // $('.form-all').css('display', 'inherit');
301 // $('.submit-button').css('display', 'inherit'); 303 // $('.submit-button').css('display', 'inherit');
302 // } 304 // }
303 /*kk***This code for change data when click to chooses stages***/ 305 /*kk***This code for change data when click to chooses stages***/
304 $scope.businessmodel = true; 306 $scope.businessmodel = true;
305 $scope.Idea =true; 307 $scope.Idea =true;
306 $scope.current = true; 308 $scope.current = true;
307 309
308 $scope.stage = function(stage){ 310 $scope.stage = function(stage){
309 // $('.sectors-card').css('display', 'block'); 311 // $('.sectors-card').css('display', 'block');
310 // $('.form-all').css('display', 'block'); 312 // $('.form-all').css('display', 'block');
311 // $('.identity-shadow').css('display', 'block'); 313 // $('.identity-shadow').css('display', 'block');
312 // $('.step-two-form').css('display', 'block'); 314 // $('.step-two-form').css('display', 'block');
313 // $('.step-three-form').css('display', 'block'); 315 // $('.step-three-form').css('display', 'block');
314 316
315 if (stage == 'Idea') { 317 if (stage == 'Idea') {
316 $scope.current = 10; 318 $scope.current = 10;
317 $scope.prototyp = false; 319 $scope.prototyp = false;
318 $scope.market = false; 320 $scope.market = false;
319 $scope.risks = false; 321 $scope.risks = false;
320 $scope.team = false; 322 $scope.team = false;
321 $scope.pitch = false; 323 $scope.pitch = false;
322 $scope.financials = false; 324 $scope.financials = false;
323 $scope.businessmodel = true; 325 $scope.businessmodel = true;
324 // for right content 326 // for right content
325 $scope.Idea =true; 327 $scope.Idea =true;
326 $scope.Product =false; 328 $scope.Product =false;
327 $scope.Growth =false; 329 $scope.Growth =false;
328 }else if(stage == 'Product') { 330 }else if(stage == 'Product') {
329 $scope.current = 10; 331 $scope.current = 10;
330 $scope.prototyp= true; 332 $scope.prototyp= true;
331 $scope.market = true; 333 $scope.market = true;
332 $scope.risks = true; 334 $scope.risks = true;
333 $scope.team = true; 335 $scope.team = true;
334 $scope.pitch = true; 336 $scope.pitch = true;
335 $scope.financials = true; 337 $scope.financials = true;
336 $scope.businessmodel = false; 338 $scope.businessmodel = false;
337 // for right content 339 // for right content
338 $scope.Idea =false; 340 $scope.Idea =false;
339 $scope.Product =true; 341 $scope.Product =true;
340 $scope.Growth =false; 342 $scope.Growth =false;
341 }else if(stage == 'Growth') { 343 }else if(stage == 'Growth') {
342 $scope.current = 10; 344 $scope.current = 10;
343 $scope.prototyp = true; 345 $scope.prototyp = true;
344 $scope.market = true; 346 $scope.market = true;
345 $scope.risks = true; 347 $scope.risks = true;
346 $scope.team = true; 348 $scope.team = true;
347 $scope.pitch = true; 349 $scope.pitch = true;
348 $scope.financials = true; 350 $scope.financials = true;
349 $scope.businessmodel = false; 351 $scope.businessmodel = false;
350 // for right content 352 // for right content
351 $scope.Idea =false; 353 $scope.Idea =false;
352 $scope.Product =false; 354 $scope.Product =false;
353 $scope.Growth =true; 355 $scope.Growth =true;
354 } 356 }
355 } 357 }
356 358
357 // $scope.sector = function(sector){ 359 // $scope.sector = function(sector){
358 // if (sector == 'retail') { 360 // if (sector == 'retail') {
359 // $scope.current = true; 361 // $scope.current = true;
360 362
361 // }else if(sector == 'b2b commerce') { 363 // }else if(sector == 'b2b commerce') {
362 // $scope.current = true; 364 // $scope.current = true;
363 365
364 // }else if(sector == 'agritech') { 366 // }else if(sector == 'agritech') {
365 // $scope.current = true; 367 // $scope.current = true;
366 368
367 // }else if(sector == 'travel') { 369 // }else if(sector == 'travel') {
368 // $scope.current = true; 370 // $scope.current = true;
369 371
370 // }else if(sector == 'fintech') { 372 // }else if(sector == 'fintech') {
371 // $scope.current = true; 373 // $scope.current = true;
372 374
373 // }else if(sector == 'hyperlocal services') { 375 // }else if(sector == 'hyperlocal services') {
374 // $scope.current = true; 376 // $scope.current = true;
375 377
376 // }else if(sector == 'education') { 378 // }else if(sector == 'education') {
377 // $scope.current = true; 379 // $scope.current = true;
378 380
379 // }else if(sector == 'rural') { 381 // }else if(sector == 'rural') {
380 // $scope.current = true; 382 // $scope.current = true;
381 // } 383 // }
382 // } 384 // }
383 // $scope.sector = function(sector){ 385 // $scope.sector = function(sector){
384 // if (sector == 'retail') { 386 // if (sector == 'retail') {
385 // $scope.current = true; 387 // $scope.current = true;
386 388
387 // }else if(sector == 'b2b commerce') { 389 // }else if(sector == 'b2b commerce') {
388 // $scope.current = true; 390 // $scope.current = true;
389 391
390 // }else if(sector == 'agritech') { 392 // }else if(sector == 'agritech') {
391 // $scope.current = true; 393 // $scope.current = true;
392 394
393 // }else if(sector == 'travel') { 395 // }else if(sector == 'travel') {
394 // $scope.current = true; 396 // $scope.current = true;
395 397
396 // }else if(sector == 'fintech') { 398 // }else if(sector == 'fintech') {
397 // $scope.current = true; 399 // $scope.current = true;
398 400
399 // }else if(sector == 'hyperlocal services') { 401 // }else if(sector == 'hyperlocal services') {
400 // $scope.current = true; 402 // $scope.current = true;
401 403
402 // }else if(sector == 'education') { 404 // }else if(sector == 'education') {
403 // $scope.current = true; 405 // $scope.current = true;
404 406
405 // }else if(sector == 'rural') { 407 // }else if(sector == 'rural') {
406 // $scope.current = true; 408 // $scope.current = true;
407 // } 409 // }
408 // } 410 // }
409 411
410 // $scope.entername = function(name){ 412 // $scope.entername = function(name){
411 // if (name == undefined) { 413 // if (name == undefined) {
412 // $scope.current = false; 414 // $scope.current = false;
413 // }else if (name != undefined){ 415 // }else if (name != undefined){
414 // $scope.current = true; 416 // $scope.current = true;
415 // } 417 // }
416 // } 418 // }
417 // $scope.enteremail = function(email){ 419 // $scope.enteremail = function(email){
418 // if (email == undefined) { 420 // if (email == undefined) {
419 // $scope.current = false; 421 // $scope.current = false;
420 // }else if (email != undefined){ 422 // }else if (email != undefined){
421 // $scope.current = true; 423 // $scope.current = true;
422 // } 424 // }
423 // } 425 // }
424 // $scope.enternumber = function(number){ 426 // $scope.enternumber = function(number){
425 // if (name == undefined) { 427 // if (name == undefined) {
426 // $scope.current = false; 428 // $scope.current = false;
427 // }else if (name != undefined){ 429 // }else if (name != undefined){
428 // $scope.current = true; 430 // $scope.current = true;
429 // } 431 // }
430 // } 432 // }
431 // $scope.selectcity = function(city){ 433 // $scope.selectcity = function(city){
432 // console.log("city",city); 434 // console.log("city",city);
433 // if (name == undefined) { 435 // if (name == undefined) {
434 // $scope.current = false; 436 // $scope.current = false;
435 // }else if (name != undefined){ 437 // }else if (name != undefined){
436 // $scope.current = true; 438 // $scope.current = true;
437 // } 439 // }
438 // } 440 // }
439 // $scope.entertechnology = function(technology){ 441 // $scope.entertechnology = function(technology){
440 // console.log("technology",technology); 442 // console.log("technology",technology);
441 // if (name == undefined) { 443 // if (name == undefined) {
442 // $scope.current = false; 444 // $scope.current = false;
443 // }else if (name != undefined){ 445 // }else if (name != undefined){
444 // $scope.current = true; 446 // $scope.current = true;
445 // } 447 // }
446 // } 448 // }
447 // $scope.enterproblem = function(problem){ 449 // $scope.enterproblem = function(problem){
448 // console.log("problem",problem); 450 // console.log("problem",problem);
449 // if (name == undefined) { 451 // if (name == undefined) {
450 // $scope.current = false; 452 // $scope.current = false;
451 // }else if (name != undefined){ 453 // }else if (name != undefined){
452 // $scope.current = true; 454 // $scope.current = true;
453 // } 455 // }
454 // } 456 // }
455 // $scope.entersolution = function(solution){ 457 // $scope.entersolution = function(solution){
456 // console.log("solution",solution); 458 // console.log("solution",solution);
457 // if (name == undefined) { 459 // if (name == undefined) {
458 // $scope.current = false; 460 // $scope.current = false;
459 // }else if (name != undefined){ 461 // }else if (name != undefined){
460 // $scope.current = true; 462 // $scope.current = true;
461 // } 463 // }
462 // } 464 // }
463 $scope.enterbusiness = function(business){ 465 $scope.enterbusiness = function(business){
464 console.log("business",business); 466 console.log("business",business);
465 if (name == undefined) { 467 if (name == undefined) {
466 $scope.current = false; 468 $scope.current = false;
467 }else if (name != undefined){ 469 }else if (name != undefined){
468 $scope.current = true; 470 $scope.current = true;
469 } 471 }
470 } 472 }
471 /*******FOR FILL THE DATA AND SHOWS ICON GREEN*/ 473 /*******FOR FILL THE DATA AND SHOWS ICON GREEN*/
472 $scope.stagekeyPress = function(){ 474 $scope.stagekeyPress = function(){
473 $('.icon-circle-a').css('background-color', 'rgb(66, 181, 73)'); 475 $('.icon-circle-a').css('background-color', 'rgb(66, 181, 73)');
474 } 476 }
475 $scope.sectorkeyPress = function(){ 477 $scope.sectorkeyPress = function(){
476 $('.icon-circle-b').css('background-color', 'rgb(66, 181, 73)'); 478 $('.icon-circle-b').css('background-color', 'rgb(66, 181, 73)');
477 } 479 }
478 480
479 $scope.studentkeyPress = function(){ 481 $scope.studentkeyPress = function(){
480 $('.icon-circle-ab').css('background-color', 'rgb(66, 181, 73)'); 482 $('.icon-circle-ab').css('background-color', 'rgb(66, 181, 73)');
481 } 483 }
482 484
483 $scope.namekeyPress = function(name){ 485 $scope.namekeyPress = function(name){
484 console.log("name",name); 486 console.log("name",name);
485 if (name == undefined) { 487 if (name == undefined) {
486 $('.icon-circle-c').css('background-color', 'rgb(102, 102, 102)'); 488 $('.icon-circle-c').css('background-color', 'rgb(102, 102, 102)');
487 }else{ 489 }else{
488 $('.icon-circle-c').css('background-color', 'rgb(66, 181, 73)'); 490 $('.icon-circle-c').css('background-color', 'rgb(66, 181, 73)');
489 } 491 }
490 } 492 }
491 $scope.emailkeyPress = function(email){ 493 $scope.emailkeyPress = function(email){
492 console.log("email",email); 494 console.log("email",email);
493 if (email == undefined) { 495 if (email == undefined) {
494 $('.icon-circle-d').css('background-color', 'rgb(102, 102, 102)'); 496 $('.icon-circle-d').css('background-color', 'rgb(102, 102, 102)');
495 }else{ 497 }else{
496 $('.icon-circle-d').css('background-color', 'rgb(66, 181, 73)'); 498 $('.icon-circle-d').css('background-color', 'rgb(66, 181, 73)');
497 } 499 }
498 } 500 }
499 501
500 502
501 $scope.phonekeyPress = function(number){ 503 $scope.phonekeyPress = function(number){
502 console.log("number",number); 504 console.log("number",number);
503 if (number == undefined) { 505 if (number == undefined) {
504 $('.icon-circle-e').css('background-color', 'rgb(102, 102, 102)'); 506 $('.icon-circle-e').css('background-color', 'rgb(102, 102, 102)');
505 }else{ 507 }else{
506 $('.icon-circle-e').css('background-color', 'rgb(66, 181, 73)'); 508 $('.icon-circle-e').css('background-color', 'rgb(66, 181, 73)');
507 } 509 }
508 } 510 }
509 511
510 $scope.citykeyPress = function(city){ 512 $scope.citykeyPress = function(city){
511 console.log("city",city); 513 console.log("city",city);
512 if (city == undefined) { 514 if (city == undefined) {
513 $('.icon-circle-f').css('background-color', 'rgb(102, 102, 102)'); 515 $('.icon-circle-f').css('background-color', 'rgb(102, 102, 102)');
514 }else{ 516 }else{
515 $('.icon-circle-f').css('background-color', 'rgb(66, 181, 73)'); 517 $('.icon-circle-f').css('background-color', 'rgb(66, 181, 73)');
516 } 518 }
517 } 519 }
518 520
519 $scope.questionkeyPress = function(q){ 521 $scope.questionkeyPress = function(q){
520 if (q == undefined) { 522 if (q == undefined) {
521 $('.icon-circle-x').css('background-color', 'rgb(102, 102, 102)'); 523 $('.icon-circle-x').css('background-color', 'rgb(102, 102, 102)');
522 }else{ 524 }else{
523 $('.icon-circle-x').css('background-color', 'rgb(66, 181, 73)'); 525 $('.icon-circle-x').css('background-color', 'rgb(66, 181, 73)');
524 } 526 }
525 } 527 }
526 528
527 $scope.technologykeyPress = function(technology){ 529 $scope.technologykeyPress = function(technology){
528 if (technology == undefined) { 530 if (technology == undefined) {
529 $('.icon-circle-h').css('background-color', 'rgb(102, 102, 102)'); 531 $('.icon-circle-h').css('background-color', 'rgb(102, 102, 102)');
530 }else{ 532 }else{
531 $('.icon-circle-h').css('background-color', 'rgb(66, 181, 73)'); 533 $('.icon-circle-h').css('background-color', 'rgb(66, 181, 73)');
532 } 534 }
533 } 535 }
534 $scope.problemkeyPress = function(problem){ 536 $scope.problemkeyPress = function(problem){
535 if (problem == undefined) { 537 if (problem == undefined) {
536 $('.icon-circle-i').css('background-color', 'rgb(102, 102, 102)'); 538 $('.icon-circle-i').css('background-color', 'rgb(102, 102, 102)');
537 }else{ 539 }else{
538 $('.icon-circle-i').css('background-color', 'rgb(66, 181, 73)'); 540 $('.icon-circle-i').css('background-color', 'rgb(66, 181, 73)');
539 } 541 }
540 } 542 }
541 $scope.solutionkeyPress = function(solution){ 543 $scope.solutionkeyPress = function(solution){
542 if (solution == undefined) { 544 if (solution == undefined) {
543 $('.icon-circle-j').css('background-color', 'rgb(102, 102, 102)'); 545 $('.icon-circle-j').css('background-color', 'rgb(102, 102, 102)');
544 }else{ 546 }else{
545 $('.icon-circle-j').css('background-color', 'rgb(66, 181, 73)'); 547 $('.icon-circle-j').css('background-color', 'rgb(66, 181, 73)');
546 } 548 }
547 } 549 }
548 $scope.businesskeyPress = function(business){ 550 $scope.businesskeyPress = function(business){
549 $('.icon-circle-p').css('background-color', 'rgb(66, 181, 73)'); 551 $('.icon-circle-p').css('background-color', 'rgb(66, 181, 73)');
550 } 552 }
551 553
552 $scope.prototypekeyPress = function(prototype){ 554 $scope.prototypekeyPress = function(prototype){
553 if (prototype == undefined) { 555 if (prototype == undefined) {
554 $('.icon-circle-k').css('background-color', 'rgb(102, 102, 102)'); 556 $('.icon-circle-k').css('background-color', 'rgb(102, 102, 102)');
555 }else{ 557 }else{
556 $('.icon-circle-k').css('background-color', 'rgb(66, 181, 73)'); 558 $('.icon-circle-k').css('background-color', 'rgb(66, 181, 73)');
557 } 559 }
558 } 560 }
559 561
560 $scope.marketkeyPress = function(market){ 562 $scope.marketkeyPress = function(market){
561 if (market == undefined) { 563 if (market == undefined) {
562 $('.icon-circle-l').css('background-color', 'rgb(102, 102, 102)'); 564 $('.icon-circle-l').css('background-color', 'rgb(102, 102, 102)');
563 }else{ 565 }else{
564 $('.icon-circle-l').css('background-color', 'rgb(66, 181, 73)'); 566 $('.icon-circle-l').css('background-color', 'rgb(66, 181, 73)');
565 } 567 }
566 } 568 }
567 569
568 $scope.riskkeyPress = function(risk){ 570 $scope.riskkeyPress = function(risk){
569 if (risk == undefined) { 571 if (risk == undefined) {
570 $('.icon-circle-m').css('background-color', 'rgb(102, 102, 102)'); 572 $('.icon-circle-m').css('background-color', 'rgb(102, 102, 102)');
571 }else{ 573 }else{
572 $('.icon-circle-m').css('background-color', 'rgb(66, 181, 73)'); 574 $('.icon-circle-m').css('background-color', 'rgb(66, 181, 73)');
573 } 575 }
574 } 576 }
575 577
576 $scope.teamkeyPress = function(team){ 578 $scope.teamkeyPress = function(team){
577 if (team == undefined) { 579 if (team == undefined) {
578 $('.icon-circle-n').css('background-color', 'rgb(102, 102, 102)'); 580 $('.icon-circle-n').css('background-color', 'rgb(102, 102, 102)');
579 }else{ 581 }else{
580 $('.icon-circle-n').css('background-color', 'rgb(66, 181, 73)'); 582 $('.icon-circle-n').css('background-color', 'rgb(66, 181, 73)');
581 } 583 }
582 } 584 }
583 585
584 $scope.pitchkeyPress = function(pitch){ 586 $scope.pitchkeyPress = function(pitch){
585 if (pitch == undefined) { 587 if (pitch == undefined) {
586 $('.icon-circle-z').css('background-color', 'rgb(102, 102, 102)'); 588 $('.icon-circle-z').css('background-color', 'rgb(102, 102, 102)');
587 }else{ 589 }else{
588 $('.icon-circle-z').css('background-color', 'rgb(66, 181, 73)'); 590 $('.icon-circle-z').css('background-color', 'rgb(66, 181, 73)');
589 } 591 }
590 } 592 }
591 593
592 $scope.financialskeyPress = function(financial){ 594 $scope.financialskeyPress = function(financial){
593 console.log("financial",financial); 595 console.log("financial",financial);
594 if (financial == undefined) { 596 if (financial == undefined) {
595 $('.icon-circle-q').css('background-color', 'rgb(102, 102, 102)'); 597 $('.icon-circle-q').css('background-color', 'rgb(102, 102, 102)');
596 }else{ 598 }else{
597 $('.icon-circle-q').css('background-color', 'rgb(66, 181, 73)'); 599 $('.icon-circle-q').css('background-color', 'rgb(66, 181, 73)');
598 } 600 }
599 } 601 }
600 602
601 // create a message to display in our view 603 // create a message to display in our view
602 // $scope.message = 'Everyone come and see how good I look!'; 604 // $scope.message = 'Everyone come and see how good I look!';
603 }); 605 });
604 606
605 scotchApp.controller('verifyController', function($scope, $http, $location) { 607 scotchApp.controller('verifyController', function($scope, $http, $location) {
606 608
607 $scope.pendingPaymentId = $location.absUrl().split('=')[1] 609 $scope.pendingPaymentId = $location.absUrl().split('=')[1]
608 var BASE_URL = "http://139.59.68.74:4001/api"; 610 var BASE_URL = "http://139.59.68.74:4001/api";
609 $http({ 611 $http({
610 method : "GET", 612 method : "GET",
611 url : BASE_URL+'/applicants/'+$scope.pendingPaymentId, 613 url : BASE_URL+'/applicants/'+$scope.pendingPaymentId,
612 }).then(function mySuccess(response) { 614 }).then(function mySuccess(response) {
613 $scope.data = response.data; 615 $scope.data = response.data;
614 console.log("response-1",response); 616 console.log("response-1",response);
615 $scope.pendingPaymentId = $location.absUrl().split('=')[1] 617 $scope.pendingPaymentId = $location.absUrl().split('=')[1]
616 $http({ 618 $http({
617 method : "GET", 619 method : "GET",
618 url : BASE_URL+'/payments?filter={"where":{"applicantId":'+$scope.pendingPaymentId+'}}', 620 url : BASE_URL+'/payments?filter={"where":{"applicantId":'+$scope.pendingPaymentId+'}}',
619 }).then(function mySuccess(response) { 621 }).then(function mySuccess(response) {
620 $scope.paymentRecord = response.data; 622 $scope.paymentRecord = response.data;
621 }, function myError(response) { 623 }, function myError(response) {
622 // $scope.paymentRecord = response.data; 624 // $scope.paymentRecord = response.data;
623 }); 625 });
624 }, function myError(response) { 626 }, function myError(response) {
625 $scope.myWelcome = response.statusText; 627 $scope.myWelcome = response.statusText;
626 }); 628 });
627 629
628 $scope.checkView = false; 630 $scope.checkView = false;
629 $scope.verifyView = false; 631 $scope.verifyView = false;
630 632
631 $scope.pendingPaymentId = ''; 633 $scope.pendingPaymentId = '';
632 634
633 var BASE_URL = "http://139.59.68.74:4001/api"; 635 var BASE_URL = "http://139.59.68.74:4001/api";
634 636
635 $scope.update = function(){ 637 $scope.update = function(){
636 638
637 $http({ 639 $http({
638 method: 'GET', 640 method: 'GET',
639 url: BASE_URL+'/payments?filter={"where":{"applicantId": '+$scope.pendingPaymentId+'}}', 641 url: BASE_URL+'/payments?filter={"where":{"applicantId": '+$scope.pendingPaymentId+'}}',
640 //data: email, 642 //data: email,
641 headers: {} 643 headers: {}
642 }).then(function mySuccess(searchResult) { 644 }).then(function mySuccess(searchResult) {
643 if(searchResult.data[0].status == "pending"){ 645 if(searchResult.data[0].status == "pending"){
644 $scope.checkView = true; 646 $scope.checkView = true;
645 $scope.verifyView = false; 647 $scope.verifyView = false;
646 $scope.amount = searchResult.data[0].amount * 100; 648 $scope.amount = searchResult.data[0].amount * 100;
647 console.log('pending data', searchResult); 649 console.log('pending data', searchResult);
648 var i = 0; 650 var i = 0;
649 var options = { 651 var options = {
650 "key": "rzp_test_YwHsVFiDIQ2WUQ", 652 "key": "rzp_test_YwHsVFiDIQ2WUQ",
651 "amount": $scope.amount, 653 "amount": $scope.amount,
652 654
653 "name": "Startup Jalsa", 655 "name": "Startup Jalsa",
654 "description":"amount", 656 "description":"amount",
655 "currency": "INR", 657 "currency": "INR",
656 "status": "done", 658 "status": "done",
657 659
658 "theme": { 660 "theme": {
659 "color": "#2196f3 ", 661 "color": "#2196f3 ",
660 "image_padding":"NO" 662 "image_padding":"NO"
661 }, 663 },
662 "modal": { 664 "modal": {
663 "ondismiss": function(){ 665 "ondismiss": function(){
664 } 666 }
665 }, 667 },
666 "handler": function (response){ 668 "handler": function (response){
667 createPayment(response); 669 createPayment(response);
668 } 670 }
669 }; 671 };
670 var rzp1 = new Razorpay(options); 672 var rzp1 = new Razorpay(options);
671 rzp1.open(); 673 rzp1.open();
672 $scope.paymentResponse = {}; 674 $scope.paymentResponse = {};
673 function createPayment(response){ 675 function createPayment(response){
674 $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id; 676 $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id;
675 $scope.paymentResponse.razorOrderId = $scope.paymentResult.data.razorOrderId; 677 $scope.paymentResponse.razorOrderId = $scope.paymentResult.data.razorOrderId;
676 $scope.paymentResponse.amount = $scope.amount; 678 $scope.paymentResponse.amount = $scope.amount;
677 $scope.paymentResponse.currency = "INR"; 679 $scope.paymentResponse.currency = "INR";
678 $scope.paymentResponse.status = "captured"; 680 $scope.paymentResponse.status = "captured";
679 $scope.paymentResponse.applicantId = $scope.userId; 681 $scope.paymentResponse.applicantId = $scope.userId;
680 console.log("$scope.paymentResponse",$scope.paymentResponse) 682 console.log("$scope.paymentResponse",$scope.paymentResponse)
681 $http({ 683 $http({
682 method: 'PUT', 684 method: 'PUT',
683 url: BASE_URL+'/payments/'+$scope.paymentResult.data.id, 685 url: BASE_URL+'/payments/'+$scope.paymentResult.data.id,
684 data: $scope.paymentResponse, 686 data: $scope.paymentResponse,
685 headers: {} 687 headers: {}
686 }).then(function mySuccess(searchResult) { 688 }).then(function mySuccess(searchResult) {
687 689
688 }, function myError(error) { 690 }, function myError(error) {
689 691
690 }); 692 });
691 } 693 }
692 }else{ 694 }else{
693 695
694 } 696 }
695 697
696 }, function myError(error) { 698 }, function myError(error) {
697 }); 699 });
698 } 700 }
699 }); 701 });
700 702
701 // scotchApp.controller('contactController', function($scope) { 703 // scotchApp.controller('contactController', function($scope) {
702 // $scope.message = 'Contact us! JK. This is just a demo.'; 704 // $scope.message = 'Contact us! JK. This is just a demo.';
703 // }); 705 // });
704 706