stripe npm package needed).
Setup
1
Get your keys
From Stripe Dashboard, copy your Secret Key. Under Webhooks, create an endpoint pointing to/api/kavach/auth/stripe/webhook and copy the Signing Secret.2
Configure the plugin
Usage
Create a checkout session
Open the billing portal
Check subscription status
Webhook events
The plugin handles these Stripe events automatically:
Webhook signatures are verified using HMAC-SHA256 with constant-time comparison. Stale timestamps (over 5 minutes) are rejected.