Skip to content

Commit

Permalink
Merge pull request #7 from pronamic/6-add-support-for-eps-payment-method
Browse files Browse the repository at this point in the history
Add EPS payment method.
  • Loading branch information
rvdsteege authored Jul 18, 2023
2 parents c6ce14d + c6912de commit 03207e7
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/EpsGateway.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php
/**
* EPS gateway
*
* @author Pronamic <[email protected]>
* @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;
}
1 change: 1 addition & 0 deletions src/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 03207e7

Please sign in to comment.