Back to Templates
npx create-convex@latest -t convex/convex-stripe-demoThis example app demonstrates how to integrate Stripe, the payments platform, with Convex, the backend application platform. We keep track of payments in Convex and fulfill orders when they're confirmed by Stripe.
You can test the payment flow end to end using Stripe's test card numbersTo test the payments flow, follow these steps:
- Sign up for Stripe for free at https://stripe.com/
- Install the stripe CLI
- Run
stripe listen --forward-to localhost:5173/stripe - Copy the "Your webhook signing secret" from the output of the
listencommand, and set it asSTRIPE_WEBHOOKS_SECRETenvironment variable on your Convex dashboard - Copy your test secret API key from the code example on https://stripe.com/docs/checkout/quickstart and set it as
STRIPE_KEYenvironment variable on your Convex dashboard
You can then use the test credit card details to go through the payment flow, see https://stripe.com/docs/checkout/quickstart#testing

