3 ms·
The modern-day equivalent of the "7-lines of code" is the stripped down, client-side only integration at: https://stripe.com/docs/payments/checkout/client http
by fragmede 6y ago
The modern-day equivalent of the "7-lines of code" is the stripped down, client-side only integration at:
https://stripe.com/docs/payments/checkout/client https://stripe.com/docs/payments/checkout/client
tl;dr, click on the stripe website a bunch, then copy and paste the generated html+js (which includes your api key, so you, the user don't have to mess with that) into your own website.
The demo UX is here:
https://70p1h.sse.codesandbox.io/ https://70p1h.sse.codesandbox.io/
- julianeon 6y agoThank you; that's good to know.
- voidray 6y agoGood find, and IMHO this should probably be the default integration in their docs; the first tutorial listed here is for the Payment Intents API, which is a more complicated version of the Charges API: https://stripe.com/docs/payments https://stripe.com/docs/payments