Stripe Payments & Checkouts
Learn how to sell products, subscriptions, and services on your Sitefire website with Stripe.
E-Commerce Powered by Stripe
Sitefire makes it simple to accept credit card payments, Apple Pay, Google Pay, and local payment methods directly on your website using official Stripe Buy Buttons and Payment Links.
How Stripe Buy Buttons Work
Stripe Buy Buttons are official interactive web components provided by Stripe. When a customer clicks the button on your site, Stripe opens a secure checkout overlay or redirects to a Stripe-hosted payment page.
Under the hood, Sitefire embeds the lightweight Stripe script and web component:
<script async src="https://js.stripe.com/v1/buy-button.js"></script>
<stripe-buy-button
buy-button-id="buy_btn_xxxxxx"
publishable-key="pk_live_xxxxxx">
</stripe-buy-button>
Step-by-Step: Adding a Stripe Buy Button
Create a Product in Stripe
Log in to your Stripe Dashboard, go to Product catalog, and create your product with its price.
Generate a Buy Button
Under your product in Stripe, click Create buy button. Choose your styling, then click Save and copy code.
Ask Sitefire AI to Embed It
Open the floating AI Chat widget on your website preview and paste the snippet or prompt the AI to add it.
AI Prompt Examples for Stripe
Here are example prompts you can use with Sitefire AI:
Add a Stripe Buy Button to the pricing section for our Ebook ($29). Use buy-button-id="buy_btn_123" and publishable-key="pk_live_456".
Turn the "Order Now" hero button into a direct checkout button linking to https://buy.stripe.com/example_checkout.
Embed our Stripe Pricing Table in the plans section: pricing-table-id="prctbl_123" and publishable-key="pk_live_456".
Testing Your Checkout (Test Mode vs Live Mode)
Before launching, you can test purchases using Stripe's Test Mode:
- Use your test publishable key (starts with
pk_test_...) and test buy button ID. -
When testing, you can use Stripe test card numbers like
4242 4242 4242 4242with any future date. -
Once verified, ask Sitefire AI to update your publishable key to your live key (starts with
pk_live_...) before publishing.