Initial dev export (exclude uploads/runtime)
This commit is contained in:
22
plugins/store/gateways/PaypalGateway.php
Normal file
22
plugins/store/gateways/PaypalGateway.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Plugins\Store\Gateways;
|
||||
|
||||
class PaypalGateway implements GatewayInterface
|
||||
{
|
||||
public function key(): string
|
||||
{
|
||||
return 'paypal';
|
||||
}
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return 'PayPal';
|
||||
}
|
||||
|
||||
public function isEnabled(array $settings): bool
|
||||
{
|
||||
return (string)($settings['store_paypal_enabled'] ?? '0') === '1';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user