<?php

return [
    'payments' => [
        'driver' => env('RASEEDNOW_PAYMENT_DRIVER', 'mock_gateway'),
        'generic_http' => [
            'endpoint' => env('RASEEDNOW_PAYMENT_ENDPOINT'),
            'api_key' => env('RASEEDNOW_PAYMENT_API_KEY'),
            'api_secret' => env('RASEEDNOW_PAYMENT_API_SECRET'),
            'webhook_secret' => env('RASEEDNOW_PAYMENT_WEBHOOK_SECRET'),
            'timeout' => (int) env('RASEEDNOW_PAYMENT_TIMEOUT', 15),
        ],
    ],

    'fulfillment' => [
        'driver' => env('RASEEDNOW_FULFILLMENT_DRIVER', 'mock_provider'),
        'generic_http' => [
            'endpoint' => env('RASEEDNOW_FULFILLMENT_ENDPOINT'),
            'api_key' => env('RASEEDNOW_FULFILLMENT_API_KEY'),
            'api_secret' => env('RASEEDNOW_FULFILLMENT_API_SECRET'),
            'timeout' => (int) env('RASEEDNOW_FULFILLMENT_TIMEOUT', 20),
        ],
        'midasbuy' => [
            'base_url' => env('MIDASBUY_API_BASE_URL', 'https://midasbuy-api.com/api/v1'),
            'api_key' => env('MIDASBUY_API_KEY'),
        ],
    ],

    'notifications' => [
        'email_driver' => env('RASEEDNOW_EMAIL_DRIVER', 'log'),
        'sms_driver' => env('RASEEDNOW_SMS_DRIVER', 'log'),
        'sms_http' => [
            'endpoint' => env('RASEEDNOW_SMS_ENDPOINT'),
            'api_key' => env('RASEEDNOW_SMS_API_KEY'),
            'api_secret' => env('RASEEDNOW_SMS_API_SECRET'),
            'sender' => env('RASEEDNOW_SMS_SENDER', 'RaseedNow'),
            'timeout' => (int) env('RASEEDNOW_SMS_TIMEOUT', 10),
        ],
    ],
];
