wp-pay-extensions /
memberpress
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Apple Pay 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 | |||
| 15 | /** |
||
| 16 | * WordPress pay MemberPress Apple Pay gateway |
||
| 17 | * |
||
| 18 | * @author Reüel van der Steege |
||
| 19 | * @version 2.3.0 |
||
| 20 | * @since 2.3.0 |
||
| 21 | */ |
||
| 22 | class ApplePayGateway extends Gateway { |
||
| 23 | /** |
||
| 24 | * Payment method. |
||
| 25 | * |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | protected $payment_method = PaymentMethods::APPLE_PAY; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Constructs and initialize Apple Pay gateway. |
||
| 32 | */ |
||
| 33 | public function __construct() { |
||
| 34 | parent::__construct(); |
||
| 35 | |||
| 36 | // Capabilities. |
||
| 37 | $this->capabilities = array( |
||
| 38 | 'process-payments', |
||
| 39 | 'create-subscriptions', |
||
| 40 | 'cancel-subscriptions', |
||
| 41 | 'update-subscriptions', |
||
| 42 | 'suspend-subscriptions', |
||
| 43 | 'resume-subscriptions', |
||
| 44 | 'subscription-trial-payment', |
||
| 45 | ); |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Get alias class name of this gateway. |
||
| 50 | * |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | public function get_alias() { |
||
| 54 | return 'MeprApplePayGateway'; |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Get icon function, please note that this is not a MemberPress function. |
||
| 59 | * |
||
| 60 | * @since 2.0.8 |
||
| 61 | * @return string |
||
| 62 | */ |
||
| 63 | protected function get_icon() { |
||
| 64 | return PaymentMethods::get_icon_url( PaymentMethods::APPLE_PAY ); |
||
|
0 ignored issues
–
show
|
|||
| 65 | } |
||
| 66 | } |
||
| 67 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.