Skip to main content
You can accept payments on your Kleap site using Stripe. Because Kleap sites are fast, mostly-static websites, the simplest and safest way to sell is with Stripe Payment Links and Buy Buttons — no server or secret keys required.
Stripe Payment Links and Buy Buttons are hosted by Stripe and embed with a public key only. That means no sensitive keys ever live in your site’s code — which is safer and works perfectly with a static site.
A Payment Link is a Stripe-hosted checkout page you can link to from any button.
1

Create products in Stripe

In your Stripe Dashboard, create a product and price (one-time or subscription).
2

Create a Payment Link

Go to Payment LinksNew, pick your product, and copy the link (looks like https://buy.stripe.com/...).
3

Add it to your site

Ask the AI to add a buy button:
That’s it — clicks go to Stripe’s secure checkout, and Stripe handles payment, receipts, and (for subscriptions) recurring billing.

Buy Buttons & Pricing Tables

Stripe also offers embeddable Buy Buttons and Pricing Tables you can drop into a page. Create one in Stripe, then:
Only ever use your publishable key (pk_live_... / pk_test_...) in your site. Never put a secret key (sk_...) in a website — it must stay private.

Test vs Live Mode

ModeKeys / LinksUse
TestTest-mode payment links, pk_test_Try the flow safely
LiveLive payment links, pk_live_Real payments

Test Card Numbers

Use these in test mode:
Card NumberResult
4242 4242 4242 4242Success
4000 0000 0000 0002Declined
4000 0000 0000 3220Requires 3D Secure

Advanced: Custom Checkout

Fully custom, server-side Stripe flows (dynamic carts, metered billing, custom webhooks) require a backend to hold your secret key. That’s beyond a static site — if you need it, you’d pair your site with your own backend or a serverless function. For most sites, Payment Links and Buy Buttons cover selling products, plans, and services.

Best Practices

Only publishable keys belong in a website. Secret keys stay in Stripe / a backend.
Run a test-mode purchase end to end before switching to live links.

Troubleshooting

Make sure the button links to a valid https://buy.stripe.com/... Payment Link, and that the link is set to live mode when you’re ready for real payments.
Confirm you used your publishable key (pk_...) and the correct pricing-table ID from Stripe.

Selling something bigger?

Add Kleap Database for orders, accounts, and saved data