What you get
How it works
Your app talks to Stripe throughapi.pre.dev with the workspace’s pre.dev key. pre.dev sends each request to Stripe for your workspace’s Stripe account and returns Stripe’s response. The Stripe SDK needs its host pointed at pre.dev, which the build agent sets from variables that are already there:
Where money and events go
- Your app’s server starts Checkout with the Stripe SDK, through
api.pre.dev, on your workspace’s Stripe account. - The customer pays on Stripe’s hosted Checkout page.
- Stripe settles the payment to your Stripe balance, minus Stripe’s processing fee and any pre.dev platform fee on live payments, and pays out to your bank on your Stripe payout schedule.
- pre.dev relays the Stripe event to
POST /api/stripe/webhookon your app’s server, signed withSTRIPE_WEBHOOK_SECRET. Your handler verifies it and marks the order paid. See webhooks.
Test mode and going live
While you build, payments run in Stripe test mode on an account pre.dev created for your workspace. Checkout accepts Stripe’s test cards and nothing is charged. To take real money, connect a Stripe account you own once from Integrations → Built-in, then switch any project from test to live in its Built-in tab. See go live.Bring your own Stripe account
If you already have a Stripe account, paste your ownsk_… key as STRIPE_SECRET_KEY in the project’s environment variables. pre.dev then drops its host override and account id, and your app talks to Stripe directly. Also replace STRIPE_PUBLISHABLE_KEY (and its VITE_ and NEXT_PUBLIC_ copies) and STRIPE_WEBHOOK_SECRET with your own values; pre.dev’s stay in place until you do. Webhooks for your own account are yours to register in the Stripe dashboard.
Not available through the built-in key
Account management, application fees, and Stripe products that need a platform-level agreement return403 with an explanation. That covers accounts, account links and sessions, apps, application fees, Apple Pay domains, country specs, Financial Connections, Identity, Issuing, Radar, reporting, Sigma, bulk tax rates, Terminal, and Treasury. Everything an app normally does to take money is available.
