Hello,
I am running the Drupal Ubercart webshop:
I am facing following issue with the installation of the following module for Drupal with Ubercart webshop system:
Namely the payment methods which are set in my Mollie account cannot be set in Drupal Admin
See screenshot in the attachment:
Mollie_Payment Methods.jpg
Besides the payment methods are not appearing in the front end in the check step:
Payment methods
See screenshot in the attachment:
Checkout_Payment Methods.jpg
Note
Only the iDeal payment method is showing and can be activated under Drupal:
admin - modules - TAB: UBERCART PAYMENT - Mollie iDEAL
This iDeal payment method is configured by another installed Mollie module for iDeal only:
See screenshot in the attachment:
Drupal Admin_Modules_Ubercart-Payment_Mollie iDEAL.jpg
The issue that the payment methods are not showing through the Mollie Payment module is caused by an error in the required 3th party libraries:
Namely in the installation proces I have successfully installed Mollie Payment according the installation & configuration manual.
The Mollie Mollie Payment module is showing and is set activated also right in Drupal:
admin - modules - payment - Mollie Payment
The Mollie Payment module requires the following modules which I have successfully installed and set activated in the Drupal Admin:
The Mollie payment module requires also following 3th party libraries:
I have put the all the files in the folder from the Mollie API client for PHP in the libraries folder so that Autoloader.php is at the path:
sites - all - libraries - mollie_api - src - Mollie - API - Autoloader.php
('git clone https://github.com/mollie/mollie-api-php.git mollie_api' from
within the sites/all/libraries folder)
See screenshot in the attachment:
Server_Libraries_Mollie api_Autoloader php.jpg.jpg
Next I have made sure the composer.json file is in:
sites - all - libraries - mollie_api
See screenshot in the attachment:
Server_Libraries_Mollie api_Composer json.jpg
After installing and adding successfully all the required modules and libraries this error warning message is showing at Drupal:
admin - reports - libraries - mollie_api
Status report for library Mollie client API for PHP
Error: The version of the library Mollie client API for PHP was not detected.
Check that the whole library is located at sites/all/libraries/mollie_api.
The following files and directories should be contained in that directory:
• src
• Mollie
• API
• Autoloader.php
If you have moved any files, reload the page. If successful, you should see status information about this library.
If the files are placed correctly and the version can still not be detected, the library information is incorrect.
Contact the maintainer of the Mollie Payment module to correct this.
See screenshot in the attachment:
Drupal Admin_Reports_Libraries_Mollie API client for PHP.jpg
So last written in above error message I am doing right now by contacting Support by posting my issue.
Can you correct the library information right so I will to be able to set and use the payment options which are set activated in my Mollie account please?
If you need further details and login credentials in order to fix this issue you can contact me by email.
Thanks already a lot in advance!
Best regards,
Joris
J-DSGN.NL
webdesign & development
Email: joris@j-dsgn.nl
Website: J-dsgn.nl
Drupal profile: J-dsgn
Comments
Comment #2
wesleydv CreditAttribution: wesleydv commentedIn the latest version of mollie_api_php the version is no longer available in composer.json
It is now set in src/Mollie/API/Client.php
I attached a patch that fixes this.
Comment #3
wesleydv CreditAttribution: wesleydv at District09 commentedComment #4
J-dsgn CreditAttribution: J-dsgn commentedHi Wesley,
Thanks for your quick reply and patch.
Can you explain me which next steps I will have to take now to make your send patch work please?
Thanks in advance.
Best regards,
Joris
Comment #5
wesleydv CreditAttribution: wesleydv at District09 commentedHere's is some info on how to apply a patch https://www.drupal.org/patch/apply
However this one is a simple patch so I'll explain what it does.
In the mollie_payment.module file replace the following lines (starting on line 56)
with
Maybe try to apply to patch like explained in the link, and then you can check with this information if it worked.
Make sure you are in the mollie_payment dir before you apply the patch.
Comment #6
ricovandevin CreditAttribution: ricovandevin at Finlet commentedI'll check with Mollie if reading the version from Client.php is a stable solution.
Comment #7
J-dsgn CreditAttribution: J-dsgn commentedHi,
I am convioused here now what to do ?!
Is the patch working to solve my problem or not?
If yes, how do I put the patch in the Molly payment module?
Regards,
Joris
Comment #8
ricovandevin CreditAttribution: ricovandevin at Finlet commentedThe patch should solve the issue that the version of the Mollie API client for PHP can not be detected.
In https://www.drupal.org/node/2854320#comment-11955907 there is already a link explaining how to apply a patch. There is also a pretty clear instruction on how to change the file involved yourself when you are not able to apply a patch.
Comment #9
J-dsgn CreditAttribution: J-dsgn commentedThanks for the confirmation and I will apply the given patch.
Comment #11
ricovandevin CreditAttribution: ricovandevin at Finlet commentedMollie might be removing version information from the codebase in the (near) future. Since the Drupal 8 version of this module is using Composer to load the API client we have decided to hardcode the current version in
mollie_payment_libraries_info()
.Fixed in dev version.