Setup
1
Create a Stripe account
Go to stripe.com and create an account if you don’t have one.
2
Get your API keys
- In the Stripe dashboard, go to Developers → API keys
- Copy your Secret key
3
Set up webhooks
Ringee needs Stripe webhooks to process payment events:
- Go to Developers → Webhooks
- Click Add endpoint
- Set the endpoint URL to:
https://your-backend-url/api/stripe/webhook - Select the events to listen to:
checkout.session.completedcustomer.subscription.createdcustomer.subscription.updatedcustomer.subscription.deletedinvoice.payment_succeededinvoice.payment_failed
- Copy the Signing secret
4
Configure environment variables
Add the following to your
.env file:Environment Variables
Testing locally
For local development, use the Stripe CLI to forward webhook events:STRIPE_WEBHOOK_SECRET during development.

