<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Third Party Services
    |--------------------------------------------------------------------------
    |
    | This file is for storing the credentials for third party services such
    | as Mailgun, Postmark, AWS and more. This file provides the de facto
    | location for this type of information, allowing packages to have
    | a conventional file to locate the various service credentials.
    |
    */

    'mailgun' => [
        'domain' => env('MAILGUN_DOMAIN'),
        'secret' => env('MAILGUN_SECRET'),
        'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
    ],

    'postmark' => [
        'token' => env('POSTMARK_TOKEN'),
    ],

    'ses' => [
        'key' => env('AWS_ACCESS_KEY_ID'),
        'secret' => env('AWS_SECRET_ACCESS_KEY'),
        'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
    ],

    'meta_marketing' => [
        'access_token' => env('META_ADS_ACCESS_TOKEN') ?: env('META_MARKETING_API_ACCESS_TOKEN'),
        'ad_account_id' => env('META_AD_ACCOUNT_ID') ?: env('META_ADS_ACCOUNT_ID'),
        'business_id' => env('META_BUSINESS_ID'),
        'app_id' => env('META_APP_ID'),
        'graph_version' => env('META_GRAPH_VERSION', 'v20.0'),
        'timeout' => env('META_MARKETING_API_TIMEOUT', 15),
        'status_poll_attempts' => env('META_MARKETING_STATUS_POLL_ATTEMPTS', 3),
        'status_poll_delay' => env('META_MARKETING_STATUS_POLL_DELAY', 5),
        'insights_sync_enabled' => env('META_INSIGHTS_SYNC_ENABLED', false),
        'insights_sync_days' => env('META_INSIGHTS_SYNC_DAYS', 14),
        'insights_sync_time' => env('META_INSIGHTS_SYNC_TIME', '02:15'),
        'purchaser_audience_id' => env('META_PURCHASER_AUDIENCE_ID', ''),
        'purchaser_audience_name' => env('META_PURCHASER_AUDIENCE_NAME', 'Last 180 Day Purchase 10/02/26'),
        'audiences' => [
            'high_receive_low_return' => [
                'id' => env('META_HIGH_RECEIVE_LOW_RETURN_AUDIENCE_ID', ''),
                'lookalike_id' => env('META_HIGH_RECEIVE_LOW_RETURN_LOOKALIKE_ID', ''),
            ],
            'high_return_blacklisted' => [
                'id' => env('META_HIGH_RETURN_BLACKLISTED_AUDIENCE_ID', ''),
            ],
        ],
        'lookalike_country' => env('META_LOOKALIKE_COUNTRY', 'BD'),
        'lookalike_ratio' => env('META_LOOKALIKE_RATIO', 0.01),
    ],

    'bangla_qr' => [
        'provider' => env('BANGLA_QR_PROVIDER', 'sslcommerz'),
        'merchant_id' => env('BANGLA_QR_MERCHANT_ID'),
        'terminal_id' => env('BANGLA_QR_TERMINAL_ID'),
        'store_id' => env('BANGLA_QR_STORE_ID'),
        'api_key' => env('BANGLA_QR_API_KEY'),
        'initiate_url' => env('BANGLA_QR_INITIATE_URL'),
        'status_url' => env('BANGLA_QR_STATUS_URL'),
        'callback_secret' => env('BANGLA_QR_CALLBACK_SECRET'),
        'signature_header' => env('BANGLA_QR_SIGNATURE_HEADER', 'X-BanglaQR-Signature'),
        'allow_signed_callback_without_status' => env('BANGLA_QR_ALLOW_SIGNED_CALLBACK_WITHOUT_STATUS', false),
        'expiry_minutes' => env('BANGLA_QR_EXPIRY_MINUTES', 10),
        'timeout' => env('BANGLA_QR_TIMEOUT', 15),
    ],

];
