The error occurs on line 165-166: https://github.com/mollie/WooCommerce/blob/master/mollie-payments-for-woocommerce/includes/mollie/wc/gateway/abstract.php#L165-L166
I think you probably have a (very) old PHP version (< PHP 5.3). You can temporarily fix this by editing the file wp-content/plugins/mollie-payments-for-woocommerce/includes/mollie/wc/gateway/abstract.php and edit the lines 165-166 to:
$this->min_amount = $mollie_method->getMinimumAmount() ? $mollie_method->getMinimumAmount() : 0;
$this->max_amount = $mollie_method->getMaximumAmount() ? $mollie_method->getMaximumAmount() : 0;
I will try to fix this in the next release.
Thank you very much for the quick help!
The development environment has indeed an old php version.
I’m glad I was able to help!
Similar to https://wordpress.org/support/topic/undefined-class-constant-%E2%80%98belfius%E2%80%99?replies=4
If you can’t disable the old plugin because you have old orders pending you can fix this issue by updating the submodule mollie-api-php in the old plugin:
1. Backup your wp-content/plugins/MPM directory
2. Download latest mollie-api-php version from https://github.com/mollie/mollie-api-php/releases
3. Extract downloaded ZIP file
4. Copy the directory src to wp-content/plugins/MPM/lib/src
Let me know if this fixes your problem.