| 1 |
<?php |
| 2 |
|
| 3 |
namespace Payplug\PayplugWoocommerce\Gateway; |
| 4 |
|
| 5 |
use Payplug\PayplugWoocommerce\Controller\PayplugGenericGateway; |
| 6 |
|
| 7 |
class AmericanExpress extends PayplugGenericGateway |
| 8 |
{ |
| 9 |
public const ENABLE_ON_TEST_MODE = false; |
| 10 |
|
| 11 |
public function __construct() |
| 12 |
{ |
| 13 |
parent::__construct(); |
| 14 |
|
| 15 |
/** @var \WC_Settings_API override $id */ |
| 16 |
$this->id = 'american_express'; |
| 17 |
|
| 18 |
/** @var \WC_Payment_Gateway overwrite for apple pay settings */ |
| 19 |
$this->method_title = __('payplug_amex_title', 'payplug'); |
| 20 |
$this->method_description = ''; |
| 21 |
|
| 22 |
$this->title = __('payplug_amex_title', 'payplug'); |
| 23 |
$this->description = ''; |
| 24 |
$this->has_fields = false; |
| 25 |
$this->image = 'Amex_logo_color.svg'; |
| 26 |
|
| 27 |
if (!$this->checkGateway()) { |
| 28 |
$this->enabled = 'no'; |
| 29 |
} |
| 30 |
} |
| 31 |
} |
| 32 |
|