<?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'),
        'scheme' => 'https',
    ],

    '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'),
    ],

    // 綠界電子發票 B2C API（後台對帳/補開/作廢）。金鑰仍取自各機台 payment_configs.ecpay_invoice；
    // 此處僅控制 API 網域。留空（未設 env）時由 EcpayInvoiceService 依環境 fail-safe：
    // 正式環境才用 https://einvoice.ecpay.com.tw，其餘走 https://einvoice-stage.ecpay.com.tw。
    'ecpay_invoice' => [
        'base_url' => env('ECPAY_INVOICE_BASE_URL'),
    ],

];
