Issues (54)

src/Gateways/ApplePayGateway.php (1 issue)

1
<?php
2
/**
3
 * Apple Pay gateway
4
 *
5
 * @author    Pronamic <[email protected]>
6
 * @copyright 2005-2022 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
15
/**
16
 * WordPress pay MemberPress Apple Pay gateway
17
 *
18
 * @author  Reüel van der Steege
19
 * @version 3.1.0
20
 * @since   2.3.0
21
 */
22
class ApplePayGateway extends Gateway {
23
	/**
24
	 * Constructs and initialize Apple Pay gateway.
25
	 */
26
	public function __construct() {
27
		parent::__construct( 'MeprApplePayGateway', PaymentMethods::APPLE_PAY );
28
29
		// Capabilities.
30
		$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...
31
			'process-payments',
32
			'create-subscriptions',
33
			'cancel-subscriptions',
34
			'update-subscriptions',
35
			'subscription-trial-payment',
36
		);
37
	}
38
}
39