# payplug/3.1.0/src/Gateway/AmericanExpress.php

PayPlug for WooCommerce (Official), version 3.1.0. 32 lines.

- Page: https://pluginprobe.com/plugins/payplug/3.1.0/code/src/Gateway/AmericanExpress.php
- Raw: https://pluginprobe.com/plugins/payplug/3.1.0/raw/src/Gateway/AmericanExpress.php
- Modified: 2026-09-25T08:27:34+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/payplug/3.1.0/code/src/Gateway/AmericanExpress.php#L10-L20`.

```php
<?php

namespace Payplug\PayplugWoocommerce\Gateway;

use Payplug\PayplugWoocommerce\Controller\PayplugGenericGateway;

class AmericanExpress extends PayplugGenericGateway
{
    public const ENABLE_ON_TEST_MODE = false;

    public function __construct()
    {
        parent::__construct();

        /** @var \WC_Settings_API override $id */
        $this->id = 'american_express';

        /** @var \WC_Payment_Gateway overwrite for apple pay settings */
        $this->method_title = __('payplug_amex_title', 'payplug');
        $this->method_description = '';

        $this->title = __('payplug_amex_title', 'payplug');
        $this->description = '';
        $this->has_fields = false;
        $this->image = 'Amex_logo_color.svg';

        if (!$this->checkGateway()) {
            $this->enabled = 'no';
        }
    }
}

```
