wp-pay-extensions /
memberpress
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Direct Debit mandate via Bancontact 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 Bancontact gateway |
||
| 18 | * |
||
| 19 | * @author Reüel van der Steege |
||
| 20 | * @version 3.1.0 |
||
| 21 | * @since 1.0.6 |
||
| 22 | */ |
||
| 23 | class DirectDebitBancontactGateway extends Gateway { |
||
| 24 | /** |
||
| 25 | * Constructs and initialize credit card gateway. |
||
| 26 | */ |
||
| 27 | public function __construct() { |
||
| 28 | parent::__construct( 'MeprDirectDebitBancontactGateway', PaymentMethods::DIRECT_DEBIT_BANCONTACT ); |
||
| 29 | |||
| 30 | // Capabilities. |
||
| 31 | $this->capabilities = array( |
||
|
0 ignored issues
–
show
Bug
Best Practice
introduced
by
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-bancontact/icon-32x32.png', Plugin::$file ); |
||
| 48 | } |
||
| 49 | } |
||
| 50 |