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

    'payments' => [
        'online' => [
            'is_live' => env('ONLINE_PAY_IS_LIVE'),
            'arb_hosted_endpoint' => env('ONLINE_PAY_IS_LIVE') ?
                'https://digitalpayments.alrajhibank.com.sa/pg/payment/hosted.htm' :
                'https://securepayments.alrajhibank.com.sa/pg/payment/hosted.htm',
            'merchant_hosted_endpoint' => env('ONLINE_PAY_IS_LIVE') ?
                'https://digitalpayments.alrajhibank.com.sa/pg/payment/tranportal.htm' :
                'https://securepayments.alrajhibank.com.sa/pg/payment/tranportal.htm',
            'payment_endpoint' => env('ONLINE_PAY_IS_LIVE') ?
                'https://digitalpayments.alrajhibank.com.sa/pg/paymentpage.htm?PaymentID=' :
                'https://securepayments.alrajhibank.com.sa/pg/paymentpage.htm?PaymentID=',
            'tranportal_id' => env('ONLINE_PAY_IS_LIVE') ?
                env('PRODUCTION_TRANPORTAL_ID') :
                env('TEST_TRANPORTAL_ID'),
            'tranportal_password' => env('ONLINE_PAY_IS_LIVE') ?
                env('PRODUCTION_TRANPORTAL_PASSWORD') :
                env('TEST_TRANPORTAL_PASSWORD'),
            'terminal_resource_key' => env('ONLINE_PAY_IS_LIVE') ?
                env('PRODUCTION_TERMINAL_RESOURCE_KEY') :
                env('TEST_TERMINAL_RESOURCE_KEY'),
            'success_status' => 'CAPTURED',
        ],
        'tabby' => [

        ],
        'tamara' => [
            'is_live' => env('TAMARA_IS_LIVE'),
            'url' => env('TAMARA_IS_LIVE') ? 'https://api.tamara.co' : 'https://api-sandbox.tamara.co',
            'token' => env('TAMARA_IS_LIVE') ? env('TAMARA_TOKEN_PRODUCTION') : env('TAMARA_TOKEN_TEST'),
            'notification_token' => env('TAMARA_IS_LIVE') ?
                env('TAMARA_NOTIFICATION_TOKEN_PRODUCTION') :
                env('TAMARA_NOTIFICATION_TOKEN_TEST'),
            'public_key' => env('TAMARA_PUBLIC_KEY'),
            'payment_type' => 'PAY_BY_INSTALMENTS',
        ],
    ],

    'shipping' => [
        'dhl' => [
            'is_live' => env('DHL_IS_LIVE'),
            'url' => env('DHL_IS_LIVE') ?
                'https://express.api.dhl.com/mydhlapi' :
                'https://express.api.dhl.com/mydhlapi/test',
            'api_key' => env('DHL_IS_LIVE') ? env('DHL_API_KEY_PRODUCTION') : env('DHL_API_KEY_TEST'),
            'api_secret' => env('DHL_IS_LIVE') ? env('DHL_API_SECRET_PRODUCTION') : env('DHL_API_SECRET_TEST'),
            'account_number' => env('DHL_ACCOUNT_NUMBER'),
        ],
        'ajex' => [
            'username' => 'CityBike',
            'password' => 'gLt_pHitewr7&r5p+ewr',
            'product_code' => 'SE0123',
        ],
        'ups' => [
            'is_live' => env('UPS_IS_LIVE'),
            'url' => env('UPS_IS_LIVE') ?
                'https://onlinetools.ups.com/' :
                'https://wwwcie.ups.com/',
            'client_id' => env('UPS_CLIENT_ID'),
            'client_secret' => env('UPS_CLIENT_SECRET'),
            'shipper_number' => env('UPS_SHIPPER_NUMBER'),
        ],
    ],

];
