+
Startup Ambassador
-
diff --git a/pages/home.html b/pages/home.html
index 7b69fbc..2b7a507 100644
--- a/pages/home.html
+++ b/pages/home.html
@@ -420,7 +420,7 @@
-
-
-

-
-
-
-
-
-
-
+
+
Payment Verification
+
+
+
Name:
{{data.name}}
@@ -35,11 +28,9 @@
-
-
-
diff --git a/script.js b/script.js
index 7eb5cda..dbe168f 100644
--- a/script.js
+++ b/script.js
@@ -12,7 +12,7 @@
})
// route for the about page
- .when('/verification/=:id', {
+ .when('/verification/:id', {
templateUrl: 'pages/verify.html',
controller: 'verifyController'
})
@@ -53,7 +53,7 @@
$scope.numberCheck = false;
// $scope.tokencheck = false;
$scope.paymentResult = {};
- var BASE_URL = "http://139.59.68.74:4001/api";
+ var BASE_URL = "http://0.0.0.0:4001/api";
var data = {
"amount": $scope.payingAmnt,
"currency": "INR",
@@ -147,7 +147,7 @@
/*****THIS IS FOR STEP ONE FORM ******/
$scope.next = function() {
- var BASE_URL = "http://139.59.68.74:4001/api";
+ var BASE_URL = "http://0.0.0.0:4001/api";
$scope.data.status = null
if ($scope.data.stage == undefined || $scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined || $scope.data.city == undefined) {
var x = document.getElementById("snackbar")
@@ -242,7 +242,7 @@
// });
// }
- var BASE_URL = "http://139.59.68.74:4001/api";
+ var BASE_URL = "http://0.0.0.0:4001/api";
console.log("BASE_URL", BASE_URL)
$scope.infoForm = true;
console.log("sdasdasdsa");
@@ -640,17 +640,17 @@
// $scope.message = 'Everyone come and see how good I look!';
});
- scotchApp.controller('verifyController', function($scope, $http, $location) {
-
- $scope.pendingPaymentId = $location.absUrl().split('=')[1]
- var BASE_URL = "http://139.59.68.74:4001/api";
+ scotchApp.controller('verifyController', function($scope, $http, $location, $route) {
+ $scope.pendingPaymentId = $route.current.params.id
+ var BASE_URL = "http://0.0.0.0:4001/api";
$http({
method: "GET",
url: BASE_URL + '/applicants/' + $scope.pendingPaymentId,
}).then(function mySuccess(response) {
$scope.data = response.data;
console.log("response-1", response);
- $scope.pendingPaymentId = $location.absUrl().split('=')[1]
+ $scope.pendingPaymentId = $route.current.params.id;
+
$http({
method: "GET",
url: BASE_URL + '/payments?filter={"where":{"applicantId":' + $scope.pendingPaymentId + '}}',
@@ -668,7 +668,7 @@
$scope.pendingPaymentId = '';
- var BASE_URL = "http://139.59.68.74:4001/api";
+ var BASE_URL = "http://0.0.0.0:4001/api";
$scope.update = function() {
@@ -745,7 +745,7 @@
var numberSpliced = randomNumber.slice(2,5);
$scope.data.referalToken = nameSpliced+numberSpliced;
$scope.data.referalToken = $scope.data.referalToken.toUpperCase();
- var BASE_URL = "http://139.59.68.74:4001/api";
+ var BASE_URL = "http://0.0.0.0:4001/api";
$http({
method: 'POST',
url: BASE_URL + '/ambassadors',