Skip to content

PHP & Mollie API v2

David de Boer edited this page Jun 18, 2018 · 14 revisions

Starting with version 4.0 the Mollie Payments for WooCommerce plugin will require PHP 5.6. This is required for the new Mollie API v2, which supports multicurrency payments.

Why should I care about API v2?

The biggest benefit to merchants it that API v2 fully supports multicurrency. You can create payments, subscriptions, and refunds in non-EUR currencies. Your account will still be settled in EUR, so new fields have been added in the API to reflect the settlement amount for various resources.

When will the plugin version 4.0 be released?

We expect to launch version 4.0 in June 2018.

Why is the required PHP version changed?

Non-technical explanation: Mollie wants to be able to use new technologies which require PHP 5.6, to provide you, the merchant, with a more secure and stable payment service.

Version 4.0 of the plugin works with the Mollie API v2. The plugin uses the Mollie API PHP client to communicate with the Mollie API. The API PHP client requires the usage of PHP 5.6.

There are other reasons to update to at least PHP 5.6 (or better yet, PHP 7+): speed and security. Read this recommended article by Joost de Valk of the Yoast plugin: Whipping your hosting into shape

How to upgrade to PHP 5.6 or higher

How PHP can be updated depends on your host. You can either ask your hoster to upgrade the PHP version on your account, or upgrade it yourself if you know how, and have enough privileges.

Email for your hoster, by Yoast.

Overview of popular hosts, by Yoast.

You will need to make sure your website supports this PHP version. The latest version of WordPress and WordPress plugins should run perfectly on a higher PHP version, but outdated plugins might have issues. Make sure that you review your website after updating the PHP version.

What to do if you can't upgrade PHP

First of all, is there really a good reason why you can't upgrade? Should you consider moving to another host? If you really can't update PHP, select your situation below. You will basically keep using the 3.x version of the plugin. Do note: you will not have access to bug fixes or new features in the plugin or gt any of the benefits of the new Mollie API v2.

I'm still using version 3.0.x of the Mollie plugin

Do nothing! Do not update the Mollie Payments for WooCommerce plugin to version 4.0 until you can upgrade to at least PHP 5.6.

I've updated to 4.0 and can't update PHP, now getting issues...

Download and install the old plugin version, 3.0.5 and keep using that until you can update to at least PHP 5.6. If you can not access your WordPress admin anymore, first, remove the Mollie plugin (information will not be lost) via FTP.

To remove Mollie Payments for WooCommerce via FTP:

  1. Login to FTP with your favourite FTP program
  2. Navigate to wp-content/plugins
  3. Find and remove the folder mollie-payments-for-woocommerce

To install the old version:

  1. Go to WordPress.org.
  2. Scroll down to "PREVIOUS VERSIONS", in the dropdown select 3.0.5 and click "Download".
  3. Go to WordPress > Plugins > Add new > Upload plugin
  4. Select "Choose File" and select the ZIP archive you just downloaded on your computer
  5. Click "Install Now"
  6. Activate the plugin
Clone this wiki locally