37 lines
716 B
PHP
37 lines
716 B
PHP
<?php
|
|
|
|
namespace App\Extensions\PaymentGateways\Mollie;
|
|
|
|
use Spatie\LaravelSettings\Settings;
|
|
|
|
class MollieSettings extends Settings
|
|
{
|
|
|
|
public bool $enabled = false;
|
|
public ?string $api_key;
|
|
|
|
public static function group(): string
|
|
{
|
|
return 'mollie';
|
|
}
|
|
|
|
public static function encrypted(): array
|
|
{
|
|
return [
|
|
"api_key",
|
|
];
|
|
}
|
|
|
|
public static function getOptionInputData()
|
|
{
|
|
return [
|
|
'category_icon' => 'fas fa-dollar-sign',
|
|
'api_key' => [
|
|
'type' => 'string',
|
|
'label' => 'API Key',
|
|
'description' => 'The API Key of your Mollie App',
|
|
]
|
|
];
|
|
}
|
|
}
|