Mollie API V2 use for D7 version

Created on 6 November 2024, 16 days ago

Mollie has required to use the V2 version of their API from 1st of january 2025. There's still one Drupal 7 Commerce site that hasn't been migrated to D10 due to the big amount of custom code in in several modules.
Is there anyone using a patch to upgrade the D7 version of this module to use the Mollie API v2?
Any help on this would be great...

💬 Support request
Status

Active

Version

1.0

Component

Code

Created by

🇳🇱Netherlands vincent rommelaars

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @vincent rommelaars
  • 🇧🇪Belgium bramvandenbulcke

    We are in the same boat! Similar request here.

    Maybe noting: we used mollie_payment in our setup but switched to commerce_mollie because there were problems with some payments (visitors abandoning the payment) in combination with the Entity Registration module.

    Switching from mollie_payment to commerce_mollie solved our problem but we also switched from api v2 to api v1!

  • 🇳🇱Netherlands vincent rommelaars

    For this particular use, and for the time being I did a rewrite of the 'commerce_mollie' module to use the Mollie API v2 for use with Drupal 7 Commerce.
    Because I don't know how to write a patch properly, I share the compressed module folder 'commerce_mollie' so anyone who needs it can unzip it in their modules folder as usual.
    The module now uses the Mollie API v2 library which is added in 'mollie-api-php'.
    Unpack this one in your libraries folder and you should be good to go.

    Please use it at your own risk and test it before, since I didn't had time to test it thorough.

  • 🇳🇱Netherlands Nicasso

    Hi @vincent,

    Which exact version of the mollie-api-php is this?

  • 🇳🇱Netherlands vincent rommelaars

    Hi @nicasso,
    Good Question.
    I took the library files from another D7 site with the "mollie_payment" module working which was using the very same library.
    I took a quick look and as you can see in the library files it's version 2.10.0 of the mollie-api-php library.
    So, I didn't update them to the latest version.

    As you can see the latest update should be 2.74.1 and you can update this by running the composer command:
    $ composer require mollie/mollie-api-php:^2.0

    So please give it a try. I assume this should also work.
    But you know what they say about assumtions...

    "Assumption is the mother of all f*ckups" ;)

Production build 0.71.5 2024