News for hackers. Stuff that matters.
Re:Stripe Button (beta) by jonknee on Tuesday October 09, 2012 @04:22PM (#4633730)
That is interesting, the form is a POST, must be Javascript doing the GET in its place. I wonder what the technical advantage of GET is in this case.
Re:Stripe Button (beta) by exogen on Tuesday October 09, 2012 @04:43PM (#4633824)
The technical advantage is getting around the same-origin policy by using JSONP (which by its nature can only be used with GET requests for the script).
Re:Stripe Button (beta) by jtolj on Tuesday October 09, 2012 @04:42PM (#4633821)
Maybe has something to do with this: https://stripe.com/blog/stripejs-and-jsonp (they mention JSONP only supporting GET requests)?
Re:Stripe Button (beta) by jonknee on Tuesday October 09, 2012 @11:18PM (#4634891)
Yup. Duh.