for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Config
*
* @author Pronamic <[email protected]>
* @copyright 2005-2019 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Gateways\Adyen
*/
namespace Pronamic\WordPress\Pay\Gateways\Adyen;
use Pronamic\WordPress\Pay\Core\Gateway as Core_Gateway;
use Pronamic\WordPress\Pay\Core\GatewayConfig;
* @author Remco Tolsma
* @version 1.0.0
* @since 1.0.0
class Config extends GatewayConfig {
* API Key.
* @var string
public $api_key;
* API Live URL Prefix.
public $api_live_url_prefix;
* Merchant Account.
public $merchant_account;
* Get API key.
* @return string
public function get_api_key() {
return $this->api_key;
}
* Get merchant account.
public function get_merchant_account() {
return $this->merchant_account;
* Get API URL.
public function get_api_url() {
if ( Core_Gateway::MODE_TEST === $this->mode ) {
return Endpoint::API_URL_TEST;
return sprintf( Endpoint::API_URL_LIVE, $this->api_live_url_prefix );