<?php

namespace Config;

use CodeIgniter\Config\BaseConfig;

/**
 * FinFlo Direct Debit (Option 2: hosted checkout).
 * @see DIRECT_DEBIT_DEVELOPER_GUIDE.md
 */
class FinFlo extends BaseConfig
{
    /** Base URL for FinFlo API (no trailing slash). E.g. https://finflo.online/public/v1 */
    public string $baseUrl = 'https://finflo.online/public/v1';

    /** In-house API key (Admin → API Keys). Set in .env as FINFLO_API_KEY. Do not expose in client apps. */
    public ?string $apiKey = null;

    /** Platform app slug registered in FinFlo (e.g. jambo, didi-riders). Set in .env as FINFLO_APP_SLUG. */
    public string $appSlug = 'jambo';

    /**
     * Verify SSL when calling FinFlo API. Set false only for local/dev if SSL verification fails
     * (e.g. unable to get local issuer certificate). Keep true in production.
     */
    public bool $verifySSL = false;
}
