From ebaf0555213d21bb2644e96e6f55efd7fd6446ea Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Tue, 7 May 2024 12:00:38 +0200 Subject: [PATCH] Add Mollie gateway. --- composer.json | 1 + pronamic-pay-restrict-content.php | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/composer.json b/composer.json index a716af8..bc17a7a 100644 --- a/composer.json +++ b/composer.json @@ -78,6 +78,7 @@ "automattic/jetpack-autoloader": "^3.0", "pronamic/wp-money": "^2.2", "woocommerce/action-scheduler": "^3.7", + "wp-pay-gateways/mollie": "^4.10", "wp-pay/core": "^4.6" }, "require-dev": { diff --git a/pronamic-pay-restrict-content.php b/pronamic-pay-restrict-content.php index 5e9fcd7..99bee2a 100644 --- a/pronamic-pay-restrict-content.php +++ b/pronamic-pay-restrict-content.php @@ -53,3 +53,16 @@ function ( $integrations ) { return $integrations; } ); + +add_filter( + 'pronamic_pay_gateways', + function ( $gateways ) { + $gateways[] = new \Pronamic\WordPress\Pay\Gateways\Mollie\Integration( + [ + 'manual_url' => \__( 'https://www.pronamicpay.com/en/manuals/how-to-connect-mollie-to-wordpress-with-pronamic-pay/', 'pronamic-pay-with-mollie-for-contact-form-7' ), + ] + ); + + return $gateways; + } +);