๐Ÿงช Test Payment Initialization

Testing Paystack payment gateway integration

Step 1: Get Default Payment Gateway

โœ… Default gateway found: Paystack

Gateway 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 exist
The payment_transactions table is missing. Please run the database migration.