Webhook Configuration Test
Test 1: Configuration Loading
Warning: session_start(): Session cannot be started after headers have already been sent in /home/fransamh/public_html/includes/config.php on line 89
✅ Config loaded successfully
Database Host: localhost
Database Name: fransamh_db
App URL: https://fransamhomes.com
Test 2: Database Class
✅ Database class instantiated
✅ Database connection successful
Test 3: Payment Gateway Service
✅ PaymentGatewayService instantiated
✅ Paystack gateway found
Gateway ID: 1
Warning: Undefined array key "status" in /home/fransamh/public_html/test_webhook_simple.php on line 83
Status:
Test 4: Booking Service
✅ BookingService instantiated
Test 5: PHPMailer Availability
✅ PHPMailer is available
Test 6: Webhook File
✅ Webhook file exists
Path: /home/fransamh/public_html/webhooks/paystack.php
✅ Logs directory is writable
Test 7: Webhook Signature Generation
✅ Signature generated successfully
Signature: 5c195740e62308d44f19af97bb2a4a253cb91364283fcff924...
Use this for testing:
Summary
If all tests pass, your webhook should work correctly.
Next Steps:
- Make sure MySQL is running (start XAMPP MySQL)
- Create a test booking and initiate payment
- Use the test_webhook.php script to simulate webhook
- Check logs/paystack_webhooks.log for detailed logs