Skip to content

Commit

Permalink
Move Mollie to dev requirement.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Jun 7, 2024
1 parent a23ad8c commit 21d9e9e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
"pronamic/wp-number": "^1.3",
"pronamic/wp-pay-logos": "^2.2",
"woocommerce/action-scheduler": "^3.7",
"wp-pay-gateways/mollie": "^4.10",
"wp-pay/core": "dev-main as 4.18"
},
"require-dev": {
Expand All @@ -86,6 +85,7 @@
"roots/wordpress": "^6.0",
"szepeviktor/phpstan-wordpress": "^1.3",
"vimeo/psalm": "^5.24",
"wp-pay-gateways/mollie": "^4.11",
"wp-phpunit/wp-phpunit": "^6.4",
"yoast/phpunit-polyfills": "^2.0"
},
Expand Down
25 changes: 14 additions & 11 deletions pronamic-pay-gravity-forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,18 @@ function ( $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-gravity-forms' ),
]
);
if ( class_exists( \Pronamic\WordPress\Pay\Gateways\Mollie\Integration::class ) ) {
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-gravity-forms' ),
]
);

return $gateways;
}
);
}

Check failure on line 76 in pronamic-pay-gravity-forms.php

View workflow job for this annotation

GitHub Actions / phpcs / phpcs

Expected 1 blank line at end of file; 2 found

return $gateways;
}
);

0 comments on commit 21d9e9e

Please sign in to comment.