News for hackers. Stuff that matters.
Re:How the Collison brothers turned ‘seven lines of code’ in... by komali2 on Tuesday August 01, 2017 @02:08PM (#14903582)
Wait, the /your-server-side-code bit seems like the most difficult. Did Stripe not implement this aspect as well? I would have no idea how to securely process credit card transactions server-side.
Re:How the Collison brothers turned ‘seven lines of code’ in... by ryebit on Tuesday August 01, 2017 @02:14PM (#14903647)
If I remember how they worked (last did stripe integration a ways back), the script instruments your form's submit event to do an (ajax if possible) POST to stripe's server, which processes everything, and returns back a (merchant specific) "token" representing a redeemable charge to the customer. The form is then posted to your server, but all it gets is the "token", which it can then use your private merchant key to redeem behind the scenes with their server.

So you get an anonymous "charge" token that you can revoke if a later part of the checkout process fails, and CC data never touches your system.

(I think the markup for that was a little bit different than what was posted above though).

Re:How the Collison brothers turned ‘seven lines of code’ in... by gnaritas on Tuesday August 01, 2017 @06:02PM (#14905801)
Correct, and the big reason for that is it means you don't have to be PCI compliant since the card never touches your server, only stripes. That's why Stripe blew up, Paypal had no such offering for allowing you to use your own checkout form but not have to pass the card through your server.
Re:How the Collison brothers turned ‘seven lines of code’ in... by surfmike on Wednesday August 02, 2017 @03:24AM (#14908578)
Not true, PayPal Payments Pro offered that.
Re:How the Collison brothers turned ‘seven lines of code’ in... by Kluny on Wednesday August 02, 2017 @08:45AM (#14910070)
That product seems to have a marketing problem. I've heard plenty of PayPal horror stories over the years, but this thread is the first time I've ever heard of Payments Pro.
Re:How the Collison brothers turned ‘seven lines of code’ in... by gnaritas on Wednesday August 02, 2017 @11:46AM (#14911465)
Not exactly, the Paypal transparent redirect one still bounces you through paypal's URL; the Stripe one never leaves your domain.
Re:How the Collison brothers turned ‘seven lines of code’ in... by Kluny on Wednesday August 02, 2017 @08:43AM (#14910056)
I think they did eventually. I remember trying to use Stripe for a project during college (2012ish) that involved building a website with a REST integration in C#. My rtfm'ing skills were much worse back then so I could be wrong, but yeah, you had to do a bunch of server-side implementation and make calls to their API. It seemed quite challenging to me at the time, but looking back, it really wasn't. They've gotten rid of that extra step now though. You can just drop in the javascript and their html form with api keys and you're ready to go.