Commits

Anonymous committed a23fbc0

Made some variable declaration corrections

  • Participants
  • Parent commits 266926d

Comments (0)

Files changed (2)

File ForJieSheng.html

 		
 		Steve- can't do a post due to cross origin
 		
+		No post URL avail yet
 		**/
 		var customerDetails = {"customerName":"James","customerAddress":"Block 511","customerContact":1234,"customerEmail":"steve@hehe.com"};
 		var post = $.ajax({
 			type: "POST",
-			url: "http://lowe.jschua.com/DinoPos/api/creditcards",
+			url: "???",
 			data: JSON.stringify(customerDetails),
 			contentType: "application/json; charset=utf-8",
 			statusCode:{
 			
 			var postCustomerOrder = $.ajax({
 				type: "POST",
-				url: "http://lowe.jschua.com/DinoPos/api/creditcards",
-				data: JSON.stringify(customerDetails),
+				url: "http://lowe.jschua.com/DinoPos/api/transactions",
+				data: JSON.stringify(fullOrderDetails),
 				contentType: "application/json; charset=utf-8",
 				statusCode:{
 					202: function() {console.log("recieve status code 202!");},
 			$.ajax({
 				type: "POST",
 				url: "http://lowe.jschua.com/DinoPos/api/creditcards",
-				data: JSON.stringify(creditCardInfo),
+				data: JSON.stringify(transactionID),
 				contentType: "application/json; charset=utf-8",
 				statusCode:{
 					202: function() {console.log("recieve status code 202!");},
 			
 			var postCustomerOrder = $.ajax({
 				type: "POST",
-				url: "http://lowe.jschua.com/DinoPos/api/creditcards",
-				data: JSON.stringify(customerDetails),
+				url: "http://lowe.jschua.com/DinoPos/api/transactions",
+				data: JSON.stringify(fullOrderDetails),
 				contentType: "application/json; charset=utf-8",
 				statusCode:{
 					202: function() {console.log("recieve status code 202!");},