π I really dislike Stripe Elements: you have to build and style the checkout form yourself.
π€© Instead, stripe-hosted full screen checkout is a much better approach where you outsource all the payment logic to Stripe. It looks great!
π₯°π₯° But now you can use Embedded Stripe Checkout inside your app and keep your branding!
Let's implement Embedded Stripe Checkout in our app!
Text version: https://blog.corsego.com/embedded-stripe-checkout
Episode source code: https://github.com/corsego/rails-7-stripe-subscriptions/commit/3bfd4a1ff03c1340c616d71398f23d9394edbce4
Series source code: https://github.com/corsego/rails-7-stripe-subscriptions
Stripe embedded checkout API: https://docs.stripe.com/checkout/embedded/quickstart
Stripe embedded checkout docs: https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=embedded-form