OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add get-convex/agent-skills --skill convex-billing
Add Stripe billing/payments to the Convex app via @convex-dev/stripe (checkout + webhook + gating).
npx skills add get-convex/agent-skills --skill convex-billing
Wire Stripe to Convex using @convex-dev/stripe: a checkout action, an httpAction webhook registered by the component (signature-verified automatically), subscription state stored in the component's tables, and server-side gating via a query.
npm install @convex-dev/stripe.convex/convex.config.ts:
env micro power): STRIPE_SECRET_KEY (sk_test_… / sk_live_…) and STRIPE_WEBHOOK_SECRET (whsec_…).convex/http.ts to register the webhook route (the component handles signature verification automatically):
convex/billing.ts with a checkout action and a subscription-gate query:
npx convex dev --once — it will install the component and push the functions. Verify output shows ✔ Installed component stripe.https://<deployment>.convex.site/stripe/webhook, subscribe to checkout.session.completed, customer.subscription.*, invoice.*, payment_intent.*. Copy the signing secret as STRIPE_WEBHOOK_SECRET.env micro power): STRIPE_SECRET_KEY and STRIPE_WEBHOOK_SECRET.