Step 1: Get Default Payment Gateway
โ Default gateway found: PaystackGateway Name: paystack
Active: Yes
Test Mode: No
Step 2: Check Gateway Configuration
โ Secret key is configuredโ Public key is configured
Secret Key: sk_live_...4378
Callback URL:
Step 3: Test Payment Initialization
Test Payment Data:{
"email": "test@example.com",
"amount": 100,
"currency": "GHS",
"user_id": 1,
"booking_id": 999,
"phone": "0241234567",
"callback_url": "https:\/\/fransamhomes.com\/payment\/callback",
"metadata": {
"booking_id": 999,
"booking_reference": "TEST_1787910680",
"payment_type": "test",
"test_mode": true
}
}
Attempting to initialize payment...โ Payment initialization failed
Error Message:
Merchant may be inactive. Please contact support.
Troubleshooting:
- Check if your Paystack API keys are correct (Test keys start with
sk_test_) - Verify your server can make outbound HTTPS requests to api.paystack.co
- Check PHP error logs for more details
- Ensure cURL is enabled in PHP
Step 4: Check payment_transactions Table
โ payment_transactions table does not existThe payment_transactions table is missing. Please run the database migration.