Payments library "Mollie payment"

pb539 28 Oct, 2023
Is there a payment module to be expected for CF8 just as there is for CF7?
For me it's mainly about the "mollie" payment method.
And if there will be one, is there an indication of when it can be expected?
Max_admin 31 Oct, 2023
did you use the Mollie payment in v7 ? did it work for you correctly ? how did you use it ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
pb539 01 Nov, 2023
Hi Max,

Yes sure it works and use it in many forms for our motorcycle association for registrations with beatling after which a download becomes available and to sign up as a member and pay directly.

I can send you a backup of 2 forms I have ready for you if you want them.
I took out the mollie data and email addresses.

Biggest challenge was figuring out how to recover the data that goes to Mollie as meta with the reference from the redericter and get it back again for vertivication in the listener.
By using a unique order_id in the form and sending it along with the webhook from the redirector it works absolutely great and would love to use it again in CF8.

If you send a diect message to my email adress i will send you the backup files.

Regards Patrick
Max_admin 05 Nov, 2023
ok, since it's working for you then I will try to have it added in the next update
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
pb539 08 Nov, 2023
Hello max,

That would be very nice I use it in several forms and greatly appreciate it if you would add this to CF V8
klaasr 10 Dec, 2023
Hi Patrick,

Would it be possible for me to get that backup of your form as a template to setup Mollie on mine?
I had it up and running on CF6, but I'm struggling to get it working in CF7 unfortunately. A working example would help me tremendously...

Thanks in advance!
pb539 10 Dec, 2023
Hi Klaasr,

No problem.
Please send a email to webmeester@motorvereniging.nl than i will attached it on reply of your email.
See no possebility to upload it hear.

regards Patrick
klaasr 10 Dec, 2023
Mail sent!

Thanks a lot!
pb539 20 Jan, 2024
short explanation of how the mollie plugin works for me and what you might use.
For it to work properly, you need to create a unique id in your form, e.g. a time stamp, and call it to the database.
In actions, place a php block and let it request the time stamp. (see code 1).
$orderId = time();
$this->data("order_id", $orderId, true)


Now create a standalone page at the end and place the listener here.
In the listener's complete page, place a php block and request the unique id (see code 2).
$payment_object = $this->get("mollie_vk23");
$this->data("order_id", $payment_object->metadata->order_id,true);


the code retrieves the pay is and order id and any meta data that you have added to description at the mollie redirect at the beginning.
in the listener, place a read data that retrieves all data from the DB (this is where your timesatmp ID is).
and with a where condition you retrieve the order id.
now you create a save data block and update and with a where condition store the unike payment id from mollie and you could use a status change in your db.
i write a payment status not paid along at the start and after confirmation from the listener on order id and receiving payment id from mollie let it change the payment status to Paid.

Made explanation because there were several requests how I got this working.
Feel free to ask and I will send you a sample form that might help you.

https://imgur.com/a/G2RV6xr screenshots

Regards Patrick
pb539 20 Sep, 2024

Hi Max,Is there a change that the mollie plugin be add to V8?I like to use V8 but this is only wath holding me at the moment to go to Joomla 5 and Chronoforms V8.Hop you will added it soon :)Regards Patrick

Max_admin 19 Oct, 2024
Answer
1 Likes

I have added it to the next v8 update but I could not test it, so please run the test and let me know!

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
pb539 19 Oct, 2024

Max,That's great news.Absolute that i will test it and let you now.Regards Patrick

pb539 19 Oct, 2024

Hi Max,Installed: Last Updated Oct 19, 2024 14:26Version1.0.0Says succesfull,Waited for more than a hour but is not showing up in the menu.Any Idea ?

Max_admin 19 Oct, 2024

I uploaded the library but still could not upload the new update of v8, so once that's ready I will let you know so that you can test it

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin 21 Oct, 2024

Hi Patrick

the new update is now online, please test the Mollie actions and let me know

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
pb539 28 Oct, 2024

Hi Max,

I have tried various ways to start a mollie transaction but get the same error message every time.Call to a member function parse() on nullAnd unfortunately get no further I am using Joomla 4.4.9 and PHP 8.3.12

I have attached some prtscn of my test form.

Max_admin 28 Oct, 2024

Hi Patrick

Line 36 in /joomla/administrator/components/com_chronoforms8/pages/chronoforms/actions/mollie_redirect/output.php

is:

$item = $this->Parser->parse($item);

can you change it to:

$item = CF8::parse($item);

does this solve the issue ?

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
pb539 29 Oct, 2024

Hello Max,

I made the adjustment and it helped to move forward.  this solved the error.

$item = CF8::parse($item);

I do still struggle in CF8 with the redirect url for the webhook url.

I have created a separate listener form and am trying to redirect to it. http://www. etc.I am not succeeding by using the alias of the page.

I just created an articel and put the short url to the listener form in there and called it in the mollie redirect.That's not the right way but for testing purposes this works.I then neatly get a url back from mollie with which I can complete the payment.And can complete it successfully.

Could you give me a hint on how best to call or use the listener.In CF7 it was a standalone page and you could click the link directly in the webhook section of the mollie redirect.

pb539 30 Oct, 2024

Good evening Max,

Regarding my previous issue with the listener URL, the issue was that chronoforms8 refers to their pages with "/index.php?option=com_chronoforms8&action=edit&id=99" to reach the form, and mollie uses the ?id=tr_xxxxxx to return the data to the listener causing it to go into the void. 

I resolved this by going to Chronoforms7 looking at the url structure and figuring out that I could change "id=99" to "chronoform=form_alias" causing the redirect link to becom. https://example.site/index.php?option=com_chronoforms8&chronoform=form_alias instead of https://example.site/index.php?option=com_chronoforms8&id=99

So if you could change the default front view uri to the more usable one, it would be easy otherwise the method above is the sollution.

Whilst resolving that I encountered another issue with the listener callback. I am currently looking at the retrieval of metadata inside the mollie listener.But I do not see in what variable this data is stored, and my previous solution of Chronoforms7 seems to no longer work in the new version.

Previously I could set a variable using PHP to get the metadata from the Mollielistener chronoform object: 

This was the method previously:

$payment_object = $this->get("<mollie_listener_form_object_alias>");
$this->data("<metadata_item_name>", $payment_object->metadata-><meta_data_item_name>,true);

And now i don't seem to be able to retrieve any.... could you tell me where this is stored, because the {data:} or {var:<listener_name>} does not retrieve the metadata properties that are included to mollie. (The data is present in mollie according to the overview in mollie)

But the result states from the mollie listener seem to work fine, only the metadata retrieval is not clear.

Thanks in advance!

Regards, Patrick

Max_admin 01 Nov, 2024

Hi Patrick

Thank you, I fixed the link issue you noted, well done!

For the other issue, there is another bug, line 24 in this file  /joomla/administrator/components/com_chronoforms8/pages/chronoforms/actions/mollie_listener/output.php:

$this->set($element['name'], $payment);

should be:

$this->set(CF8::getname($element), $payment);

Please try this file and let me know!

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
pb539 04 Nov, 2024

Hey Max, 

This line change didn't change anything for what I see.I tried retrieving the data and listener, but I don't get any new information.

Is there anything else I could try?

Kind regards, Patrick

Max_admin 04 Nov, 2024

how do you debug the listener response ? you will need to use an Email action in the listener page, and enable the PHP support and use this code in the email body:

<?php Chrono::pr($this->get("mollie_listener_name")); ?>

This is supposed to send you the response data sent by Mollie

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
pb539 18 Nov, 2024
1 Likes

Hi Max,It's working with below php we get the order_id back and is useable for furter use with {var:php3}Working on a full example form with calculation and complete payment cycle. (form + Listener) wil atche this soon on this post for the mollie users.

Max_admin 18 Nov, 2024

Great, thank you for the confirmation

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
pb539 01 Dec, 2024
1 Likes

Hello Max,

I have attached my working mollie payment.

For those who want to use the form.

  • - I used my own database.
  • - Pay attention to your webhook. correct reference is necessary otherwise the listener will not work.
  • - Of course, please enter your own mollie data in the form and listener.
  • - If you create multiple payment forms, you can use one listener to handle everything.If you want to send out various other actions or emails, you can create multiple listeners. 

Max thanks for creating the mollie plugin for CF8.my first subscription form with payment and selections is up and running online and working well.

chronoforms8_mollie_example.cf8bak
full example form and listener
Max_admin 01 Dec, 2024

Thank you very much for sharing this Patrick! 

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
pb539 05 Oct, 2025

Hi Max,Is there something changed in the listener for mollie??I use the latest plugin and missing the status parts for the listener.If i use a older one and copy than i can used id but if i start from sctach i missing all the statusses. like completeetc.2 prtscn one i use sins the mollie plugin was released for CF8 and working fine. tried to make a new one and that's the 2e prtscn.Also tested on a total clean Joomla 5 installation with a clean installed CF8 with the latest mollie plugin same issue.

Below is what you see if you start a listener from scratch.

Max_admin 06 Oct, 2025
Answer
1 Likes

Hi Patrick

Yes, in later updates the Events are now off by default and should be turned on when needed using the Run Events behavior

Try it and let me know.

Payments library

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
You need to login to be able to post a reply.