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

PayPlug for WooCommerce (Official), version 2.10.0. 34 lines.

- Page: https://pluginprobe.com/plugins/payplug/2.10.0/code/src/Gateway/AmericanExpress.php
- Raw: https://pluginprobe.com/plugins/payplug/2.10.0/raw/src/Gateway/AmericanExpress.php
- Modified: 2024-10-24T16:13:54+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/2.10.0/code/src/Gateway/AmericanExpress.php#L10-L20`.

```php
<?php

namespace Payplug\PayplugWoocommerce\Gateway;

use Payplug\Exception\HttpException;
use Payplug\PayplugWoocommerce\Controller\PayplugGenericGateway;

class AmericanExpress extends PayplugGenericGateway
{
	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';

	}

}

```
