<?php

/*
|--------------------------------------------------------------------------
| Configuración de pasarelas de pago
|--------------------------------------------------------------------------
*/

return [

    'default_driver' => env('PAYMENT_DEFAULT_DRIVER', 'manual'),

    'drivers' => [

        'manual' => [
            'name'    => 'Pago manual / transferencia',
            'class'   => \App\Services\Payment\Drivers\ManualDriver::class,
            'enabled' => true,
        ],

        'wompi' => [
            'name'           => 'Wompi (Colombia)',
            'class'          => \App\Services\Payment\Drivers\WompiDriver::class,
            'enabled'        => (bool) env('WOMPI_ENABLED', false),
            'public_key'     => env('WOMPI_PUBLIC_KEY'),
            'private_key'    => env('WOMPI_PRIVATE_KEY'),
            'integrity_key'  => env('WOMPI_INTEGRITY_KEY'),
            'events_secret'   => env('WOMPI_EVENTS_SECRET'),
            'environment'    => env('WOMPI_ENV', 'test'),
        ],

        'mercadopago' => [
            'name'         => 'Mercado Pago',
            'class'        => \App\Services\Payment\Drivers\MercadoPagoDriver::class,
            'enabled'      => false,
            'access_token' => env('MERCADOPAGO_ACCESS_TOKEN'),
            'public_key'   => env('MERCADOPAGO_PUBLIC_KEY'),
        ],

        'payu' => [
            'name'        => 'PayU Latam',
            'class'       => \App\Services\Payment\Drivers\PayUDriver::class,
            'enabled'     => false,
            'merchant_id' => env('PAYU_MERCHANT_ID'),
            'api_key'     => env('PAYU_API_KEY'),
            'api_login'   => env('PAYU_API_LOGIN'),
        ],

        'stripe' => [
            'name'           => 'Stripe',
            'class'          => \App\Services\Payment\Drivers\StripeDriver::class,
            'enabled'        => false,
            'key'            => env('STRIPE_KEY'),
            'secret'         => env('STRIPE_SECRET'),
            'webhook_secret' => env('STRIPE_WEBHOOK_SECRET'),
        ],

        'nequi' => [
            'name'      => 'Nequi (Colombia)',
            'class'     => \App\Services\Payment\Drivers\NequiDriver::class,
            'enabled'   => false,
            'client_id' => env('NEQUI_CLIENT_ID'),
            'api_key'   => env('NEQUI_API_KEY'),
        ],

    ],

    'currency'      => env('RESERVAPRO_DEFAULT_CURRENCY', 'COP'),
    'invoice_prefix' => 'RES-',
];
