Skip to content

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.

The most effective method for configuring Stripe in a local development environment is to use the interactive setup command.

Terminal window
npx flareforge setup

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 setup
  • Copy the STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET, and all STRIPE_*_PRICE_ID variables from your local .dev.vars file to your production environment’s secrets in Cloudflare.