what are you trying to do exactly ? just place your action in the correct listener event and it will work when the listener calls that event!
make sure you set the "webhook" setting the mollie redirect to the listener page, and that the listener page is inside a new "Page Group" with Type set to "Standalone"
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi Max,
Thanks for your reaction.
Your explanation about the listener is clear now for me.
After installing the CFV7.0.4 update the mollie plugin did not include the required autoload.php file. We found this after troubleshooting and testing the plugin, because it was not working with all the required settings.
After creating and uploading a autoload.php using Composer, this was instructed on the Mollie site we could get it working.
( We uploaded the required folders as well )
After changing the path in the Mollie redirect all works ok now.
regards,
Patrick
Hi Patrick,
You should not need to add autoload.php manually, just use the Payments extension for v7 available on the Downloads page, I have added a warning if this is not installed!
Best regards
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi Max,
Thanks again for your quick response.
Maybe i understooth you wrong.
Is there a seperate download lication where to dowload this? If so do you have a link for me.
Maybe sounds stupid but i only know the location where i can download cf7 and Not where i see a payment extension.
Regards Patrick.
The same page where you download CF7, choose to download the Payment lib instead of the Extension!
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi Max,
Thanks for your help.
I have found it and i am fully up and running now.
regards,
Patrick
Great!
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
please close all the actions and views to minimize the height and post a screenshot of the pages area!
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
yes, the redirect prevents form data clearing, I have fixed that in the next update!
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi Max Thanks again.
I have another question.
Is there a way to use the order_ID waht is send as meta data to mollie to use to call (read data) to send a payment resuit?
I wanne use the order ID that's created in in my start_page
The listnere is a standalone page so i cannot use {data:order_ID} and the other fiels like name etc.
Hope that you cabn push me in the right direction so that i can pickup the data from teh DB wher it's stored.[file=13423]Inschrijving_niew_lidmaatschap_v1.0_25_Oct_2020_19_54_23.cf7bak[/file]
I have added my form. (have taken the mollie keys out).
in the new update you can use a PHP action after the Mollie listener and try a code like this:
$payment_object = $this->get("mollie_listener_name");
echo $payment_object->metadata->order_id;
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
the forms you posted here are public, if you have sensitive data like your mollie live keys then let me know and I can delete them!
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi Max, Thanks for your quick response. i look forward to the release off the update.
You can leave the form as it is as example, there is no sensitive info in it. i had already removed al the keys and sensitive date.
Thanks for your concerns.
maybe delete the 2 other ones. was going wrong by upload but are exact the same.
regards Patrick
The new update is already out!
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Dear Max,
I just tried using your code: [pre]$payment_object = $this->get("mollie_listener_43");
echo $payment_object->metadata->order_id;[/pre]
( The id is the same as in the blanc form I uploaded )
I didn't receive any data, I tried this on the following pages:
- end of mollie_listener -> new_page_3
- Bedankt1 -> new_page_4
but did not receive any data, I tried dumping the contents of the metadata but I received a null.
Would you know the sollution to this problem?
I updated chronoforms to v7.0.5 before testing.
Regards,
[br]Patrick
Well, the Listener is triggered by the Mollie api, which means that you can not test the code above directly, you need to use "return", instead of "echo", then add an Email action (just for testing) and use {var:php_action_name} in the email body, configure the email recipient and subject and check the value in the email body, is it correct ?
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
try:
return $payment_object->metadata;
what do you get ?
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
try to add multiple emails in the different areas, complete and others, do you get any of them ?
Because that's the correct way to get it done!
You may also send me on PM the login info to your site and the Mollie test key and I will test this myself.
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
I will create a account for you to test.
It's possible to send emails out off every part of the listener. But the email won't include the order_ id {var:php66} or the {data:id} if you create a email action outside the listener it will include the orde_id. I wil send you the details in a PM.
Hi Max,
I have send you the details to login.
You can test whit the test account.
regards Patrick
Hi All,
Question is dropped by Mollie support for assisting for a solution for my latest problem whit the listener.
If i have a reply and it works i will share the solution here. I hope that i get a quick answer from Mollie and in the mean time i am trying to get it working.
I have it working at the moment for my purpose, but not whit the listener.
I hope that there will be a good solution on short therm.
Regards Patrick
Thank you!
Actually I'm not sure the problem is with the test api only or with both the live and test, so if you can do a couple of live tests for $1 or something then you can find out!
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi,
If I remember correctly in my CFv4/5 Mollie action I had to save the form data to the database before sending data to Mollie that included a record id that Mollie would return. The on return I re-loaded the data from the table to use in emails etc.
Bob
Hi Bob,
That's a good solution, but the main issue is that it seems that Mollie does not trigger the listener url in test mode
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi Max,Bob,
I finally had some time to look deeper into the listener issue I was having, and found out what is not working for me.
The issue that we have is that the listener does not fetch the metadata specified in the order. ( Or i don't know how to get this data to me )
The current work arround is that we change the webhook url to create a new data value named "email" with the users email address.
This is an example of how we would do it
/component/chronoforms7/?chronoform=form_name&page=page_name&email={data:email_adres}
In the mollie redirect we added a new object in the custom parameter:
Name: metadata
Value: {"email": "{data:email}", "order_id": "{data:order_id}"}
( Metadata has the requirement for json input, the metadata has been checked in mollie and is correctly received )
Is there a way using the mollie listener (from chronoforms) to fetch this metadata?
Because there is a workaround by using the molly php function and adding custom php to the form, but this would end up not being dynamic.
Regards Patrick
Hi Patrick,
I'm not sure I fully understand this and it's a long time since I worked with Mollie - that said it looks to me as if you could save the metadata to a database table with the other form data before redirecting to Mollie, then you can recover it all when the Listener gets a response. You just need something in the data sent to Mollie e.g. an order id to identify the record to reload.
Bob