Issues (54)

src/Gateways/CreditCardGateway.php (1 issue)

1
<?php
2
/**
3
 * Credit card 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 credit card gateway
17
 *
18
 * @author  Remco Tolsma
19
 * @version 3.1.0
20
 * @since   1.0.0
21
 */
22
class CreditCardGateway extends Gateway {
23
	/**
24
	 * Constructs and initialize credit card gateway.
25
	 */
26
	public function __construct() {
27
		parent::__construct( 'MeprCreditCardGateway', PaymentMethods::CREDIT_CARD );
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