Buy Now
Sign in

Mollie action for payment at V7.0.4 not complete coded

pb539 , October 03 2020, 14:35
P
pb539 23
October 03 2020, 14:35 #394181
Hi i saw at the latest release a extra feature for mollie.
The code is not completed have i seen.
I have the part for the redirect working (not on the best way but functional).
Only the Listener is to hard for me to program whit my PHP nolledge. shute be grate if the webhook cab function.
Can ou give a idea if this wil be at the next release and when to expect????
moll.PNG
regards,
CFV7.0.4 user. it's become better and better. Thanks
admin 32
October 05 2020, 00:12 #394190
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"
P
pb539 23
October 06 2020, 19:41 #394227
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
admin 32
October 06 2020, 20:34 #394228
 Answer
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
P
pb539 23
October 06 2020, 21:22 #394233
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.
admin 32
October 06 2020, 22:23 #394234
The same page where you download CF7, choose to download the Payment lib instead of the Extension!
P
pb539 23
October 08 2020, 15:20 #394269
 1
Hi Max,
Thanks for your help.
I have found it and i am fully up and running now.
regards,
Patrick
admin 32
October 09 2020, 03:33 #394277
Great!
P
pb539 23
October 20 2020, 20:33 #394432
Hi, i hope sombody can help\explain me what's going wrong til 2 days back everything was working fine whit my forms in combinatiion whit the mollie plugin.
The strange thing is that a form what i had made before works great whitout this problem and suddenly 2 days later it has the same problem.
suddenly when i was building a complexer form i discovere that the data that's filled in the form is after the paiment is still there and won't empty the text fields. only after a full save. And when u fill the fields again they stay filled after the payment.
I have build a quick test form and after testing exact the same issue and can not find what's going wrong.
The only thing is if i do a test and set de mollie redirect the debug on. the form is empty the next time i try it.
Debug off problem back.
Payments works perfect but it looks that there is some loop. i have build also a form whitout the redericter and use my own autoload then evrything works fine. My site is running on PHP 7.4
1.PNG
2.PNG
This in the end page action. (is sequential whit the top start_page)
3.PNG
This is a standalone page.
4.PNG
Attachments
1.PNG
1.PNG
(53.4 KiB)
274 Downloads/Views
2.PNG
2.PNG
(34.53 KiB)
276 Downloads/Views
3.PNG
3.PNG
(46.54 KiB)
269 Downloads/Views
4.PNG
4.PNG
(34.69 KiB)
279 Downloads/Views
admin 32
October 22 2020, 14:26 #394447
please close all the actions and views to minimize the height and post a screenshot of the pages area!
P
pb539 23
October 22 2020, 20:28 #394455
Hi Max, I hope this will do. i have edit the picture so that you cab see the views and the actions.
in the mean time i have done some test whit not using the redirect and the listener. and used my own PHP script on the same form and than it's working normal.
Under the screenshot what my sun and i have tried what works for us. Pure for testing.
mollie_form.png
php_mollie.png
Regards Patrick.
Attachments
mollie_form.png
mollie_form.png
(113.22 KiB)
276 Downloads/Views
php_mollie.png
php_mollie.png
(35.12 KiB)
271 Downloads/Views
admin 32
October 23 2020, 03:58 #394457
yes, the redirect prevents form data clearing, I have fixed that in the next update!
P
pb539 23
October 25 2020, 20:03 #394513
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.
I have added my form. (have taken the mollie keys out).
admin 32
October 25 2020, 21:48 #394514
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;
admin 32
October 25 2020, 21:49 #394515
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!
P
pb539 23
October 26 2020, 17:18 #394540
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
admin 32
October 27 2020, 01:07 #394548
The new update is already out!
P
pb539 23
October 27 2020, 18:23 #394587
Dear Max,

I just tried using your code:
$payment_object = $this->get("mollie_listener_43");
echo $payment_object->metadata->order_id;
( 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,

Patrick
admin 32
October 28 2020, 14:13 #394595
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 ?
P
pb539 23
October 29 2020, 20:50 #394625
Hi Max,
Still strugle whit it.
i have changed "echo" to "return" and added at my case {var:php66} at the body.
email action is located in the succes part of the listener.
if i put {var:$} at the email body i get the total dump of all the vars at the end it have also all the mollie details.
i have added that part as picture. (taken all the sensiteve data out).
The data is there but totaly lost how to get only the metadata-->orde_id
i wil keep trying. but if annyone have some sugestions for us what we can trie. will be apriciated.
order_id.PNG
Attachments
order_id.PNG
order_id.PNG
(73.52 KiB)
178 Downloads/Views
order_id.PNG
order_id.PNG
(73.78 KiB)
215 Downloads/Views