Take payments with Stripe
Your widget can take one-time payments and subscriptions through Stripe. You connect your Stripe account by pasting a secret key, then ask the AI to add a payment step.
Stripe does not connect with a single click. You paste your Stripe secret key once, and Embeddable stores it for the widget.
Before you start
- A Stripe account.
- Your Stripe secret key. It starts with
sk_. You can copy it from the API keys page in your Stripe dashboard. - A widget open in the editor.
Use your test mode key first, so you can check everything works before real money moves. See "Test a payment" below.
Connect Stripe
-
Open your widget in the editor.
-
In the chat, tell the AI you want to take payments with Stripe. For example: "Add a Stripe payment to this widget."
-
The AI shows a Stripe connect card in the chat. It has a field labeled Stripe secret key (sk_...).
-
Paste your secret key into the field. Use the eye icon to show or hide the key while you check it.
-
Save the key.
The card changes to a connected state once the key is saved. If you open the widget again later, the card still shows Stripe as connected.
You can also open the Integrations panel in the editor sidebar and pick Stripe from the list of available integrations.
To change or remove the key: on the connected card, use the pencil icon to replace the key, or the trash icon to disconnect Stripe from the widget.
Add a payment step
Once Stripe is connected, describe what you're selling in the chat. The AI builds the payment step for you, so you don't need to write any code.
Include these details in your message:
- What the product is. For example: "a 60-minute strategy call" or "a monthly membership".
- The price.
- Whether it's one-time or a subscription.
- Where the payment should appear. For example: "at the end of the quiz" or "when someone clicks Book now".
A good example: "Add a Stripe payment for my $49 one-time workshop ticket. Show it after the visitor fills in their name and email."
Review the result in the editor preview. If something is off, tell the AI what to change, such as the button wording, the price or the position. You can also change words, colours and layout yourself in the editor without using AI credits.
Test a payment
Before you publish, run a payment in Stripe's test mode.
-
In your Stripe dashboard, switch to test mode and copy the test secret key (it starts with
sk_test_). -
Connect Stripe to your widget with that test key, as described above. If Stripe is already connected with a live key, use the pencil icon on the connected card to replace it.
-
Open the widget preview and go through the payment step as a visitor would.
-
When Stripe asks for card details, enter Stripe's test card number
4242 4242 4242 4242, any future expiry date and any 3-digit security code. -
Check your Stripe dashboard (still in test mode) to confirm the test payment appears.
No real money is charged in test mode.
When you're happy with the result, replace the test key with your live secret key using the same pencil icon, then publish or update your widget. Because changes show up on your site by themselves, you don't need to paste your embed code again.
Common questions
Can my widget take payments? Yes. Connect Stripe, then ask the AI to add a payment step for one-time payments or subscriptions.
Does Stripe connect in one click? Not quite. You paste your Stripe secret key into the connect card once, and then it's connected.
Is my key safe? The key is collected through the connect card in the chat and saved to the widget. Never paste your secret key into a chat message or into the widget's visible content.
Did this answer your question?
Your feedback helps us improve.
