News for hackers. Stuff that matters.
Re:Stripe Elements: Pre-built UI components to help you crea... by tonyhb on Wednesday October 04, 2017 @12:31AM (#15398269)
It's been there for around 4 years. It automatically generates a one-time card for the payment, too, so you never hand the merchant your card.

https://www.html5rocks.com/en/tutorials/forms/requestautocom...

I think this API ended up being deprecated from lack of use (not surprising as no one used it and is amazed it existed), but it may have paved the way for https://developer.mozilla.org/en-US/docs/Web/API/Payment_Req....

Genuinely surprised that this didn't catch on, it was amazing.

Re:Stripe Elements: Pre-built UI components to help you crea... by anthonyvd on Wednesday October 04, 2017 @09:57AM (#15400462)
RequestAutocomplete is indeed deprecated and Stripe is using PaymentRequest (which doesn't do anything fancy except pull your CC info from Chrome autofill for the record, so no one-time card for the payment).

RequestAutocomplete had some weird quirks that made adoption slow and full of friction. You're right to say that PaymentRequest is a fixed RequestAutocomplete in most regards, and it's amazing (I'm biased though, I'm one of the people implementing it on desktop Chrome :) ). It's being implemented by all major browsers too!