🔗 Automatic Webhook Setup
Setting up webhook endpoint at:
https://smileydoctor.com/stripe-webhook.php
What this will do:
• Create webhook endpoint in your Stripe account
• Configure all necessary events for subscriptions
• Generate webhook signing secret
• Automatically update stripe-config.php
• Enable annual fee processing
📋 Events to be configured:
checkout.session.completed - Adds annual fee after subscriptioncustomer.subscription.created - Tracks new subscriptionscustomer.subscription.updated - Handles plan changescustomer.subscription.deleted - Processes cancellationsinvoice.payment_succeeded - Handles annual renewalsinvoice.payment_failed - Alerts on payment failures
🔒 Security Note:
This script uses your Stripe API keys to create webhooks.
Delete this file after setup: rm /var/www/smileydoctor/setup-webhook.php