Connect Stripe
1
Create a restricted or secret API key
In the Stripe Dashboard, go to Developers → API keys and copy a secret key (
sk_live_…,
or sk_test_… while you’re testing).Keyplar uses it to read checkout sessions, invoices, subscriptions and customers — for
post-checkout fulfillment and for import.2
Add the webhook endpoint
Go to Developers → Webhooks → Add endpoint and use your store’s webhook URL:Subscribe to exactly these events:
Other events are accepted and ignored, so a broader subscription does no harm — it’s just
noise.
3
Copy the signing secret
On the endpoint you just created, reveal the Signing secret (
whsec_…).4
Save both in Keyplar
In your admin panel, open Settings → the Stripe panel:
- Secret key — the
sk_…key - Webhook secret — the
whsec_…signing secret - Account ID — optional (
acct_…), only if you want the connection pinned to one account
5
Set the post-checkout redirect
The Stripe panel shows the URL to use:Where to put it depends on how you sell:
- Payment Links — the link’s After payment setting, “Redirect customers to a page” (Stripe docs)
- Checkout Sessions — the
success_urlparameter when you create the session
Map products by Price ID
In Stripe, a Product is what you sell and a Price is how it’s charged. Keyplar maps on the Price ID (price_…), so monthly and annual versions of the same thing can grant
different benefits — or the same ones.
1
Copy the Price ID
In Stripe, open the product and copy the ID of the specific price, not the product. It
starts with
price_, not prod_.2
Paste it into the Keyplar product
Products → your product → the Stripe mapping field.
Things specific to Stripe
Keyplar issues and owns the license keys
Stripe has no license concept, so keys for Stripe orders are generated by Keyplar. That means you can regenerate a key from Licenses if a customer leaks theirs — something that isn’t possible for gateways that manage keys themselves.Subscription renewals arrive as invoices
Every renewal isinvoice.paid, and lands as its own order linked to the subscription. Renewal
orders are hidden from the main order lists so your history stays readable — open the
subscription to see them all.
Import brings orders, not entitlements
Importing from Stripe backfills customers, orders and subscriptions, and creates placeholder catalog products for anything unmapped. There are no entitlements in Stripe to import — benefits come from your Keyplar catalog once the mapping is in place.Testing
Use ask_test_… key and Stripe’s test mode, with a separate webhook endpoint pointed at the
same URL. Stripe’s test card 4242 4242 4242 4242 with any future expiry works for a full
round-trip through checkout, redirect and order creation.
Test-mode and live-mode credentials can’t be held at the same time — the Stripe panel holds
one secret key. Swap to live keys when you’re ready, and update the webhook secret to match
the live endpoint.