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 setupyarn flareforge setuppnpm flareforge setupProduction
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_KEYin your local.dev.varsfile 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_IDvariables from your local.dev.varsfile to your production environment’s secrets in Cloudflare.