🔍 Payment Gateway Configuration Check

Checking both payment_gateways table and system_settings

Step 1: Database Connection

✅ Connected to database successfully

Step 2: Check payment_gateways Table

✅ payment_gateways table exists

✅ Found 5 payment gateway(s)

Paystack (paystack)

Status:
Active Default Live Mode
Type:
online
Description:
Accept payments via Paystack - Cards, Mobile Money, Bank Transfer, USSD
Configuration:
public_key: pk_live_...4582
secret_key: sk_live_...4378
webhook_url: https://fransamhomes.com/webhooks/paystack.php
callback_url:
supported_channels: card, bank, ussd, qr, mobile_money, bank_transfer

Stripe (stripe)

Status:
Inactive Test Mode
Type:
online
Description:
Accept payments via Stripe - Cards and more
Configuration:
public_key: NOT SET
secret_key: NOT SET
webhook_secret: NOT SET

Flutterwave (flutterwave)

Status:
Inactive Test Mode
Type:
online
Description:
Accept payments via Flutterwave - Cards, Mobile Money, Bank Transfer
Configuration:
public_key: NOT SET
secret_key: NOT SET
encryption_key: NOT SET
webhook_secret: NOT SET

Cash Payment (cash)

Status:
Active Live Mode
Type:
offline
Description:
Pay with cash on property visit or at office
Configuration:
payment_instructions: Please bring cash payment to our office or pay during property inspection.

Bank Transfer (bank_transfer)

Status:
Active Live Mode
Type:
offline
Description:
Direct bank transfer to our account
Configuration:
bank_name:
account_name:
account_number:
branch:
swift_code:
payment_instructions:

✅ Default Gateway Found: Paystack

Step 3: Check system_settings for Payment Configuration

✅ Found 9 payment-related setting(s)

Setting KeySetting Value
booking_fee50
payment_currencyGHS
payment_methods
payment_instructions
booking_deposit_percentage2
service_fee_percentage2
security_deposit_percentage0
refund_fee_percentage0
agent_service_fee_percentage1

Step 4: Test PaymentGatewayService Class

✅ PaymentGatewayService class loaded successfully

❌ getDefaultGateway() returned NULL

Problem Identified: No default active gateway found.

Solution:
1. Go to Admin Panel → Settings → Payment Gateways
2. Find your Paystack gateway
3. Make sure "Active" checkbox is checked
4. Make sure "Set as Default" checkbox is checked
5. Enter your Paystack API keys
6. Click "Save Changes"

Step 5: Summary & Next Steps

⚠️ Issues Found:
• No default active gateway
📋 Recommended Actions:
• Set one gateway as default and active in admin settings