From fe192f0c39fd04bfbd15624cc5af56f56c78a48e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reu=CC=88el=20van=20der=20Steege?= Date: Tue, 4 Jul 2023 12:50:31 +0200 Subject: [PATCH] Add Giropay payment method. --- src/Extension.php | 1 + src/GiropayGateway.php | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 src/GiropayGateway.php diff --git a/src/Extension.php b/src/Extension.php index 238beaa..8c15abb 100644 --- a/src/Extension.php +++ b/src/Extension.php @@ -217,6 +217,7 @@ private function get_gateways() { 'pronamic_pay_direct_debit_ideal' => DirectDebitIDealGateway::class, 'pronamic_pay_direct_debit_sofort' => DirectDebitSofortGateway::class, 'pronamic_pay_ideal' => IDealGateway::class, + 'pronamic_pay_giropay' => GiropayGateway::class, 'pronamic_pay_paypal' => PayPalGateway::class, 'pronamic_pay_sofort' => SofortGateway::class, ]; diff --git a/src/GiropayGateway.php b/src/GiropayGateway.php new file mode 100644 index 0000000..990e52c --- /dev/null +++ b/src/GiropayGateway.php @@ -0,0 +1,36 @@ + + * @copyright 2005-2023 Pronamic + * @license GPL-3.0-or-later + * @package Pronamic\WordPress\Pay\Extensions\RestrictContentPro + */ + +namespace Pronamic\WordPress\Pay\Extensions\RestrictContentPro; + +use Pronamic\WordPress\Pay\Core\PaymentMethods; + +/** + * Giropay gateway + * + * @author ReĆ¼el van der Steege + * @version 4.4.0 + * @since 4.4.0 + */ +class GiropayGateway extends Gateway { + /** + * Gateway id. + * + * @var string + */ + protected $id = 'pronamic_pay_giropay'; + + /** + * Payment method. + * + * @var string + */ + protected $payment_method = PaymentMethods::GIROPAY; +}