Test Failed
Push — develop ( 1cdac7...daa624 )
by Remco
06:11 queued 12s
created

src/Gateways/DirectDebitIDealGateway.php (1 issue)

1
<?php
2
/**
3
 * Direct Debit mandate via iDEAL gateway
4
 *
5
 * @author    Pronamic <[email protected]>
6
 * @copyright 2005-2021 Pronamic
7
 * @license   GPL-3.0-or-later
8
 * @package   Pronamic\WordPress\Pay\Extensions\MemberPress
9
 */
10
11
namespace Pronamic\WordPress\Pay\Extensions\MemberPress\Gateways;
12
13
use Pronamic\WordPress\Pay\Core\PaymentMethods;
14
use Pronamic\WordPress\Pay\Plugin;
15
16
/**
17
 * WordPress pay MemberPress Direct Debit mandate via iDEAL gateway
18
 *
19
 * @author  Reüel van der Steege
20
 * @version 3.1.0
21
 * @since   2.0.0
22
 */
23
class DirectDebitIDealGateway extends Gateway {
24
	/**
25
	 * Constructs and initialize credit card gateway.
26
	 */
27
	public function __construct() {
28
		parent::__construct( 'MeprDirectDebitIDealGateway', PaymentMethods::DIRECT_DEBIT_IDEAL );
29
30
		// Capabilities.
31
		$this->capabilities = array(
0 ignored issues
show
Bug Best Practice introduced by
The property capabilities does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
32
			'process-payments',
33
			'create-subscriptions',
34
			'cancel-subscriptions',
35
			'update-subscriptions',
36
			'subscription-trial-payment',
37
		);
38
	}
39
40
	/**
41
	 * Get icon function, please note that this is not a MemberPress function.
42
	 *
43
	 * @since 2.0.8
44
	 * @return string
45
	 */
46
	protected function get_icon() {
47
		return plugins_url( 'images/direct-debit-ideal/icon-32x32.png', Plugin::$file );
48
	}
49
}
50