News for hackers. Stuff that matters.
Re:Accepting payments is getting harder by ique on Friday May 08, 2015 @03:27AM (#9510405)
With the old Stripe.js, you serve up the form but the Stripe javascript takes over the form and posts directly to Stripe, so your servers never see the data.

The new Stripe.js will render an iFrame, (Edit:) through which Stripe will send the data, which again posts to directly to stripe.

They basically behave the same way and will look the same way, the only difference is that the iFrame is in it's own Javascript "domain" so that if your site is infected with malicious javascript it can't take over the POST to stripe as easily (although that is debatable).

The former requires really high security requirements now and the latter requires almost none.

Re:Accepting payments is getting harder by matthewarkin on Friday May 08, 2015 @03:51AM (#9510451)
The new Stripe.js does not render an iframe, the credit card information is still entered on your site so $("#credit-card-number").val() would return the card number. The transmission of the card data happens through the iframe. So the card number gets copied to the iframe, and the iframe makes the post to Stripe.
Re:Accepting payments is getting harder by ique on Friday May 08, 2015 @05:20AM (#9510690)
You are right, editing my comment.
Re:Accepting payments is getting harder by nadaviv on Friday May 08, 2015 @03:45AM (#9510436)
> the iFrame is in it's own Javascript "domain" so that if your site is infected with malicious javascript it can't take over the POST to stripe as easily (although that is debatable).

A malicious attacker could simply replace the entire iframe with something else that looks identical, but sends a copy of the CC details to some other server.