I was recently helping a friend hook up Stripe to a new Webflow-based subscription ecommerce site, and found that the documentation wasn't particularly straightforward. So, in this guide, I'll walk through the exact steps required to integrate Stripe Checkout with Webflow, without implementing code or using any 3rd party integrations, for one-time payments or subscription products.
- Step 1: Create Your Plan in Stripe
- Step 2: Get Your Stripe Code
- Step 3: Create a Webflow Element
- Step 4: Publish Your Site
Step 1: Create Your Plan in Stripe
- While logged into Stripe, click Products on the left-hand menu. The exact location of this menu item will vary depending on whether or not you've created products before.
- From here, click New to add a new product. Note that if you've already created subscriptions, you'll only get the option to create a new subscription product, and likewise with one-time payment products. If you want to create a product type that you haven't created before, navigate to https://dashboard.stripe.com/products instead.
- Give your product a name and click Create product.
- If you're creating a subscription product, you'll now be prompted to add a pricing plan. Fill in the name, currency, price, and billing interval, and click Add pricing plan.
Step 2: Get Your Stripe Code
- Navigate to https://dashboard.stripe.com/settings/checkout and toggle on the Checkout client-only integration.
- You'll be prompted to allow checkout to read product information. Click Allow.
- Now, navigate back to https://dashboard.stripe.com/products and click on your new product.
- Under the pricing plans section, click the Use with Checkout button
- You'll now see a checkout snippet generator. Click the button to copy the snippet to your clipboard.
- That's it for Stripe! We can now head over to Webflow.
Step 3: Create your Webflow Element
- Now in Webflow, click Add > Elements > Components > Embed from your Webflow project screen.
- This will automatically launch the HTML Embed Code Editor
- Paste in the code you got from Stripe and click Save & Close
Step 4: Publish your Site
- You'll see a block notifying you that "This <script> embed will only appear on the published/exported site"
- At the top of your screen, click Publish and choose your destination domain. Click Publish to selected domain.
- You should now see your Stripe button visible on your page.
- Click the button and you'll be taken to the Stripe-hosted checkout page, where your customers can complete their transactions.