Skip to content

Commit

Permalink
Add Giropay payment method.
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Jul 4, 2023
1 parent 64d76b6 commit fe192f0
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
];
Expand Down
36 changes: 36 additions & 0 deletions src/GiropayGateway.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php
/**
* Giropay gateway
*
* @author Pronamic <info@pronamic.eu>
* @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;
}

0 comments on commit fe192f0

Please sign in to comment.