Set up Webhooks (Required for automatic status updates):
- Go to Stripe Webhooks
- Add an endpoint with the URL below:
https://workgeniuspro.base44.workers.dev/api/functions/subscriptionWebhook
Select events to listen for:
checkout.session.completed
customer.subscription.updated
customer.subscription.deleted
invoice.payment_succeeded
payment_intent.succeeded
payment_intent.payment_failed
charge.refunded
Copy the Signing Secret (whsec_...) and paste it below: