# fluent-cart/1.6.4/app/Modules/PaymentMethods/Cod/CodSettingsBase.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.6.4. 52 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/app/Modules/PaymentMethods/Cod/CodSettingsBase.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.6.4/raw/app/Modules/PaymentMethods/Cod/CodSettingsBase.php
- Modified: 2025-10-14T16:36:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/app/Modules/PaymentMethods/Cod/CodSettingsBase.php#L10-L20`.

```php
<?php

namespace FluentCart\App\Modules\PaymentMethods\Cod;
use FluentCart\Api\StoreSettings;
use FluentCart\App\Modules\PaymentMethods\Core\BaseGatewaySettings;

class CodSettingsBase extends BaseGatewaySettings
{

    public $settings;
    public $methodHandler = 'fluent_cart_payment_settings_offline_payment';


    public static function getDefaults(): array
    {
        return [
            'is_active'            => 'no',
            'payment_mode'         => 'live',
        ];
    }

    public function isActive(): bool
    {
        return $this->settings['active'] == 'yes';
    }

    public function getMode()
    {
        return (new StoreSettings)->get('order_mode');
    }

    public function getPublicKey()
    {
        // TODO: Implement getPublicKey() method.
    }

    public function getApiKey()
    {
        // TODO: Implement getApiKey() method.
    }

    public function get($key = '')
    {
        $settings = $this->settings;

        if ($key && isset($this->settings[$key])) {
            return $this->settings[$key];
        }
        return $settings;
    }
}

```
