2023-03-26 22:34:32 +00:00
|
|
|
<?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';
|
|
|
|
}
|
|
|
|
|
2023-04-29 22:17:40 +00:00
|
|
|
|
2023-03-26 22:34:32 +00:00
|
|
|
|
|
|
|
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',
|
2023-03-27 18:48:14 +00:00
|
|
|
],
|
|
|
|
'enabled' => [
|
|
|
|
'type' => 'boolean',
|
|
|
|
'label' => 'Enabled',
|
|
|
|
'description' => 'Enable or disable this payment gateway',
|
|
|
|
],
|
2023-03-26 22:34:32 +00:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|