Skip to Content
Super Admin GuideStripe Billing

Stripe Billing Setup

To allow institutes to buy credits, connect your Stripe account.

  1. Go to Super Admin → Billing.
  2. Enter your Stripe Secret Key (starts with sk_live_ for production, sk_test_ for testing).
  3. Enter your Stripe Webhook Secret (from your Stripe Dashboard → Developers → Webhooks).
  4. Click Save.

Warning: The webhook endpoint in your Stripe Dashboard must point to yourdomain.com/stripe/webhook. The app validates webhook signatures to secure the endpoint.

Setting Up the Stripe Webhook

  1. Log in to your Stripe Dashboard.
  2. Go to Developers → Webhooks.
  3. Click Add an endpoint.
  4. Enter the endpoint URL: yourdomain.com/stripe/webhook
  5. Select the event: checkout.session.completed
  6. Copy the Signing secret and paste it into the app’s Billing settings.

Info: When an institute buys credits, Stripe sends a webhook to this endpoint. The app validates the signature, checks for duplicate processing, and atomically adds credits to the institute’s balance.

Last updated on