Skip to content

Commit

Permalink
Add Mollie gateway.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed May 7, 2024
1 parent 9b64aee commit ebaf055
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
13 changes: 13 additions & 0 deletions pronamic-pay-restrict-content.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
);

0 comments on commit ebaf055

Please sign in to comment.