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.
Re:The Story of Stripe (2018)
by voidray on Monday June 22, 2020 @04:36PM
(#23606239)
Good 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/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/