From c6912de7789d821c4a52a7d096d61b4ad6d36e5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reu=CC=88el=20van=20der=20Steege?= Date: Mon, 17 Jul 2023 11:11:32 +0200 Subject: [PATCH] Add EPS payment method. --- src/EpsGateway.php | 36 ++++++++++++++++++++++++++++++++++++ src/Extension.php | 1 + 2 files changed, 37 insertions(+) create mode 100644 src/EpsGateway.php diff --git a/src/EpsGateway.php b/src/EpsGateway.php new file mode 100644 index 0000000..b4d793b --- /dev/null +++ b/src/EpsGateway.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; + +/** + * EPS gateway + * + * @author ReĆ¼el van der Steege + * @version 4.3.6 + * @since 4.3.6 + */ +class EpsGateway extends Gateway { + /** + * Gateway id. + * + * @var string + */ + protected $id = 'pronamic_pay_eps'; + + /** + * Payment method. + * + * @var string + */ + protected $payment_method = PaymentMethods::EPS; +} diff --git a/src/Extension.php b/src/Extension.php index 8c15abb..5b48436 100644 --- a/src/Extension.php +++ b/src/Extension.php @@ -216,6 +216,7 @@ private function get_gateways() { 'pronamic_pay_direct_debit_bancontact' => DirectDebitBancontactGateway::class, 'pronamic_pay_direct_debit_ideal' => DirectDebitIDealGateway::class, 'pronamic_pay_direct_debit_sofort' => DirectDebitSofortGateway::class, + 'pronamic_pay_eps' => EpsGateway::class, 'pronamic_pay_ideal' => IDealGateway::class, 'pronamic_pay_giropay' => GiropayGateway::class, 'pronamic_pay_paypal' => PayPalGateway::class,