for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Gateway
*
* @author Pronamic <[email protected]>
* @copyright 2005-2020 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Gateways\Adyen
*/
namespace Pronamic\WordPress\Pay\Gateways\Adyen;
use Exception;
use InvalidArgumentException;
use Locale;
use Pronamic\WordPress\Pay\Core\Gateway as Core_Gateway;
use Pronamic\WordPress\Pay\Core\PaymentMethods;
use Pronamic\WordPress\Pay\Core\Util as Core_Util;
use Pronamic\WordPress\Pay\Payments\Payment;
use Pronamic\WordPress\Pay\Plugin;
use WP_Error;
* @link https://github.com/adyenpayments/php/blob/master/generatepaymentform.php
* @author Remco Tolsma
* @version 1.0.5
* @since 1.0.0
abstract class AbstractGateway extends Core_Gateway {
* Client.
* @var Client
public $client;
* Constructs and initializes an Adyen gateway.
* @param Config $config Config.
public function __construct( Config $config ) {
parent::__construct( $config );
$this->set_method( self::METHOD_HTTP_REDIRECT );
// Supported features.
$this->supports = array();
// Client.
$this->client = new Client( $config );
}