Stripe
Flareforge provides a built-in integration with Stripe to handle one-time payments for credit-based plans. This allows you to process payments and automatically update user credit balances.
Development
Section titled “Development”The most effective method for configuring Stripe in a local development environment is to use the interactive setup command.
npx flareforge setup
yarn flareforge setup
pnpm flareforge setup
Production
Section titled “Production”A streamlined production setup process is currently in development. The following manual steps can be used to configure your application for live payments.
-
Temporarily replace the
STRIPE_SECRET_KEY
in your local.dev.vars
file with your live Stripe secret key. -
Execute the setup command to configure your application for production:
Terminal window npx flareforge setupTerminal window yarn flareforge setupTerminal window pnpm flareforge setup -
Copy the
STRIPE_SECRET_KEY
,STRIPE_WEBHOOK_SECRET
, and allSTRIPE_*_PRICE_ID
variables from your local.dev.vars
file to your production environment’s secrets in Cloudflare.