Embed Stripe Buy Button on my site
A Stripe Buy Button takes a payment for one product or subscription straight from your own Stripe account. The visitor never leaves your look and feel until Stripe’s own secure checkout opens. This is separate from bernard’s built-in shop.
The prompt
“Add my Stripe buy button for the weekend workshop to the Book page, under the description.”
Signed in, Get my prompt fills in your site for you. Otherwise press Copy and fill in the [bracketed] parts. First time? Connect your AI to bernard once: Use your own AI (opens in a new tab).
Ask your AI
Add my Stripe buy button for the weekend workshop to the Book page, under the description.
What you need first
A buy button id and your publishable key, both from the Stripe dashboard under Payment Links.
What bernard checks
The Stripe Buy Button tool is on bernard’s permitted list. Someone read the maker’s own instructions (https://docs.stripe.com/payment-links/buy-button) on 2026-09-14 and decided it was safe to run on a customer’s site: The publishable key is designed to be public, so an agent may write it; a secret sk_ key fails the attribute pattern. Stripe sets fraud-prevention cookies as soon as the page opens, before the visitor asks to pay. Lindsay decided on 2026-10-21 that fraud prevention for the checkout the page offers is strictly necessary under UK cookie law, one of the law’s own examples, so the button needs no cookie consent. Your site loads it from the maker’s own address. Stripe Buy Button comes from the maker’s own address, always at whatever version they currently publish, so there is no pinned version here for bernard to check each week. Keeping it current is the maker’s job. What bernard controls is the address: nothing else may be loaded in its place.
Your AI writes the exact tag bernard permits, on a private preview. You look at it and approve it before anything goes live.
People search for this as: stripe, buy button, checkout, take payment, sell a product.
For the full list of libraries, what is waiting, and how to ask for one that is not there, see Embed a calendar, a diagram, a chart or another tool on my site.
Questions people ask
- Do I need to write any code to use the Stripe Buy Button tool?
- No. Your AI writes the exact tag bernard permits and puts it on a preview. You approve it before it goes live, and pasted code is removed for safety every time.
- Is the Stripe Buy Button tool safe on my site?
- bernard admits it only from its own published address, with its settings written as plain data rather than code. Stripe Buy Button comes from the maker’s own address, always at whatever version they currently publish, so there is no pinned version here for bernard to check each week. Keeping it current is the maker’s job. What bernard controls is the address: nothing else may be loaded in its place. Nothing else about it can be changed from a page.
- What do I need from the Stripe Buy Button maker first?
- A buy button id and your publishable key, both from the Stripe dashboard under Payment Links.
- Can I change it later?
- Yes. Say what you want different and your AI redoes it on a preview for you to approve. Nothing about it is baked in.