<?php
/**
 * Paystack Payment Configuration
 * 
 * Add your Paystack API keys here. For testing, use the test keys.
 * For production, use your live keys.
 */

return [
    // Test Environment
    'test' => [
        'public_key' => getenv('PAYSTACK_TEST_PUBLIC_KEY') ?: '',
        'secret_key' => getenv('PAYSTACK_TEST_SECRET_KEY') ?: '',
        'callback_url' => APP_URL . '/billing/callback',
        'webhook_url' => APP_URL . '/billing/webhook',
    ],

    // Live Environment
    'live' => [
        'public_key' => getenv('PAYSTACK_LIVE_PUBLIC_KEY') ?: '',
        'secret_key' => getenv('PAYSTACK_LIVE_SECRET_KEY') ?: '',
        'callback_url' => APP_URL . '/billing/callback',
        'webhook_url' => APP_URL . '/billing/webhook',
    ],

    // Current environment setting
    'environment' => getenv('PAYSTACK_ENVIRONMENT') ?: 'live',

    // API Endpoints
    'api_url' => 'https://api.paystack.co',

    // Payment settings
    'currency' => getenv('PAYSTACK_CURRENCY') ?: 'GHS',
    'callback_timeout' => (int)(getenv('PAYSTACK_CALLBACK_TIMEOUT') ?: 30), // seconds
];
