Skip to content

Commit

Permalink
Add Riverty payment method constant.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Dec 9, 2022
1 parent 9619cc3 commit 95ba774
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Core/PaymentMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ class PaymentMethods {
/**
* AfterPay (afterpay.nl).
*
* @link https://github.com/pronamic/wp-pronamic-pay/issues/339
* @link https://www.afterpay.nl/
* @deprecated Use `RIVERTY` instead, see https://github.com/pronamic/wp-pronamic-pay/issues/339 for details.
* @var string
*/
const AFTERPAY_NL = 'afterpay_nl';
Expand Down Expand Up @@ -338,6 +340,15 @@ class PaymentMethods {
*/
const PRZELEWY24 = 'przelewy24';

/**
* Riverty.
*
* @link https://github.com/pronamic/wp-pronamic-pay/issues/339
* @since 5.0.0
* @var string
*/
const RIVERTY = 'riverty';

/**
* Santander
*
Expand Down Expand Up @@ -460,6 +471,7 @@ public static function get_payment_methods() {
self::PAYCONIQ => __( 'Payconiq', 'pronamic_ideal' ),
self::PAYPAL => __( 'PayPal', 'pronamic_ideal' ),
self::PRZELEWY24 => __( 'Przelewy24', 'pronamic_ideal' ),
self::RIVERTY => __( 'Riverty', 'pronamic_ideal' ),
self::SANTANDER => __( 'Santander', 'pronamic_ideal' ),
self::SOFORT => __( 'SOFORT Banking', 'pronamic_ideal' ),
self::SPRAYPAY => __( 'SprayPay', 'pronamic_ideal' ),
Expand Down
1 change: 1 addition & 0 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ public function __construct( $args = [] ) {
$this->payment_methods->add( new PaymentMethod( PaymentMethods::PAYCONIQ ) );
$this->payment_methods->add( new PaymentMethod( PaymentMethods::PAYPAL ) );
$this->payment_methods->add( new PaymentMethod( PaymentMethods::PRZELEWY24 ) );
$this->payment_methods->add( new PaymentMethod( PaymentMethods::RIVERTY ) );
$this->payment_methods->add( new PaymentMethod( PaymentMethods::SANTANDER ) );
$this->payment_methods->add( new PaymentMethod( PaymentMethods::SOFORT ) );
$this->payment_methods->add( new PaymentMethod( PaymentMethods::SPRAYPAY ) );
Expand Down

0 comments on commit 95ba774

Please sign in to comment.