Stripe Billing Setup
To allow institutes to buy credits, connect your Stripe account.
- Go to Super Admin → Billing.
- Enter your Stripe Secret Key (starts with
sk_live_for production,sk_test_for testing). - Enter your Stripe Webhook Secret (from your Stripe Dashboard → Developers → Webhooks).
- 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
- Log in to your Stripe Dashboard.
- Go to Developers → Webhooks.
- Click Add an endpoint.
- Enter the endpoint URL:
yourdomain.com/stripe/webhook - Select the event:
checkout.session.completed - 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