Forums

Simple donation form with Mollie.com?

jj135 09 May, 2016
Hi! I am looking for a simple way to create a donation form that can use mollie.com as payment provider. I've seen a CF4 plugin mentioned somewere? But not for CF5? And I see some payment providers in Chronoforms, but not mollie.com. Would be not to hard to implement this?

Or should I be looking at an extension like CCideal to get this working?
GreyHead 09 May, 2016
Hi jj35,

I have an version of my Mollie action for CFv5. I'll PM you a link to download it.

Bob
jj135 10 May, 2016
Thanks Bob. I got your PM and was able to download the plugin and PDF. I'm not sure we are going to use it, because the guys I am building the website for still have to decide if they want use mollie.com as a paynment provider. But if they do I can use this plugin to get thing going. Thanks!
jj135 24 May, 2016
Hi Bob,

I am now trying to set up a simple donation form. We now have a mollie.com account set up. I did this so far:
1. Install both .zip files as actions in ChronoForms. (gateway_mollie_gh.zip and gateway_mollie_submit_gh).
2. Added the database table to our database. (gateway_mollie.sql)
3. Created a new form in Chronoforms with some fields.

But I can not find the installed actions in ChronoForms. I think the steps described in the PDF are fo CF4? Not CF5?

How do I proceed?

Kind regards,
Jip
jj135 26 May, 2016
Hi Bob, don't want to rush you, but if this is not going to work out I need to look for a different solution - I am thinking cciDEAL from Chill Creations. But I still would like to know if we could get this working in CF5 because I could use that maybe again in the future.

So no big deal, just exploring the options.

Kind regards, Jip.
GreyHead 26 May, 2016
Hi Jip,

Sorry my computer was out of action for 24 hours at the repair shop and I couldn't check the files on it. The link that I sent you was for the CFv5 version as far as I can see. You should have a new Action Group called [GH] Custom Actions in the form Setup tab with the actions in it (you can't see this if you are using the Easy Wizard).

Bob.
jj135 26 May, 2016
Ah bummer! On the other hand: Some free time? ;-)

Thanks for getting back to me. Is do not see the GH custom actions... See attached scrreenshot.

What can I try to do to get these action in there?
GreyHead 26 May, 2016
Hi Jip,

Please check the /administrator/components/com_chronoforms5/chronoforms/actions folder - there should be subfolders for each of the two Mollie actions there. If they don't exist you can copy the folders over from the zip files.

Bob
jj135 27 May, 2016
OK, did that and they are now visible! I noticed there were two php files (gateway_mollie_gh.php and gateway_mollie_submit_gh.php) in /administrator/components/com_chronoforms5/chronoforms/actions folder but not in subfolders... Can I remove those? This went wrong when installing these actions?

Thanks!
jj135 27 May, 2016
Hi Bob, sorry to bother you again... I am getting further along. The form shows the 'testbank' from mollie.com. SO I guess that's working OK. But on submit I get a 500 error. In the server log I see this error:

[Fri May 27 13:42:53.898027 2016] [lsapi:error] [pid 899983:tid 139836451141376] [client 37.153.238.213:62993] [host www.kersteventzwolle.nl] Backend fatal error: PHP Fatal error: Cannot declare class iDEAL_Payment, because the name is already in use in /home/USER/domains/MYDOMAIN/public_html/nieuw/administrator/components/com_chronoforms5/chronoforms/actions/gateway_mollie_gh/include/ideal.class.php on line 15\n

Any thoughts?

Kind regards,
Jip
GreyHead 27 May, 2016
Hi Jip,

The file structure that you should have in the actions folder is like this (there are some .old.php files in the image that are no longer in use).

[attachment=0]2016-05-27_14-36-12.png[/attachment]

The error is more confusing, Please will you check the /administrator/components/com_chronoforms5/chronoforms/actions/gateway_mollie_gh/include/ideal.class.php file - in my version I see this at the beginning
if ( class_exists( 'iDEAL_Payment' ) ) {
    return;
}
class iDEAL_Payment
{
This is there to stop the class being redeclared so you shouldn't get the error. Also I'm no immediately sure why the class would be redeclared.

You could edit the file /administrator/components/com_chronoforms5/chronoforms/actions/gateway_mollie_submit_gh/gateway_mollie_submit_gh.php There are two lines like this
    include $this->base_dir.'/gateway_mollie_gh/include/ideal.class.php';
around 111 and 314. Replacing include with include_once might prevent the problem.

I've not seen this error before - though it is a while since I used this action on a client site.

Bob
jj135 27 May, 2016
Hi Bob, my file structure look right. Thanks. Installing the two zip files from the backend 'missed' creating the two subfolders somehow. I also found some include an language files under 'actions'. Anyway, they are in the right place now.

Regarding the error: Some progress... I first tried include_once on the two lines you mentioned. Did not work. But then I tried incude_once in the gateway_mollie_gh.php file (line 90). Now ther error is gone.

I do get a message (error) about the wrong or missing payment details. Do I need to use the API key or Profile numer from mollie.com in the field 'Mollie profile key'?
jj135 27 May, 2016
Ah it works! I see the mollie.com test page. I guess the Profile ID was needed,
Thanks so far! Now I will continue the test with mollie.com.
GreyHead 27 May, 2016
Hi jj135,

What is the error message you get exactly - that will help me see where in the code is is being generated. It looks to me as it the main check is for a value in the amount input > 1.18

I believe that you do need a profile key - see the Mollie Docs here

Bob
jj135 27 May, 2016
Hi Bob. Having soms trouble reaching the CF site.I believe it is hacked. Soms malicious js code... van only see the site on my tablet. On desktop it is blocked by Norton.

I think I have the donation form werking. Nice!

But... only when I use js validation. When I use server validation, when I return from the mollie.com test payment site the CF Form shows up with a validation error for the form.

Is it possible to use server validation combineren with the mollie Action? Hoe dan I implement this without the form validating on return from mollie.com?

Jip
jj135 27 May, 2016
Wow, bad spelling... stupid tablet keyboard.😲
GreyHead 29 May, 2016
Hi Jip,

I spent a few hours yesterday finding and cleaning hacked files. It looks Ok today but it will need Max to request an OK from Google for the red messages that I see.

I expect that you can use server validation but I've never tried - what error are you getting? Why would you want it after you return from the Mollie site - isn’t it needed before that stage? ,

Bob
jj135 30 May, 2016
Hi Bob,

You are right, server validation is only required before the mollie action. But I am not sure how to implement te server side validation only before the mollie action is started.

I attached a screenshot of the form setup. I included the Server Validation in the 'On Submit' before the Mollie Submit Action. After filling in the form and going to the mollie.com test page and clicking to return to te site I see the validation error.

So the server validation seems to also kick in after returning from mollie.com. In stead of showing the success or fail message.

This does not happen when I leave all required fields empty in the Server validation.

Maybe the event ordering is wrong?

I could just leave the server validation out, but I'm not sure if that won't attract all kinds of bots that have js validation disabled. Or should I not worry about this?

Kind regards,
Jip
jj135 30 May, 2016
Hi Bob,

Maybe a bit late to ask this question... But it looks like the action is only using the iDeal payment methode offered by Mollie.com. What I we want to use all the available payment options mollie.com offers? Or is this GH action not equiped to do that?

Kind regards,
Jip
jj135 30 May, 2016
In addition to my latest post: I see mollie.com is using (a new) API. But as far as I can tell the GH action does not use the API at all? Maybe the plugin needs to be updated? And would it then be possible to not only use iDEAL but have a select in the form to (first) choose the available payment option? Or is this already available?

I hope I don't take up to much of your time with this... Just let me know when I do.
GreyHead 30 May, 2016
Hi Jip,

I think I see what is happening, The data won't be there when you return from Mollie so the validation will fail. I think that the way round that is to use an Event Switcher action to contain the Server Side validation. You'd check in the Event Switcher to see what stage the form is at and either validate or not.

The history of this action is that it was written for a client four years or so ago in CFv4. Then I sold it to a few people and I have updated it to support CFv5 for them. That appears to work OK as far as I know.

I haven't looked at the Mollie API - that could probably be included, or used instead of the Action. Good API libraries usually have better functionality than actions.

Best wishes

Bob
jj135 30 May, 2016
Hi Bob, Ik will take a look at the Event Switcher for the server validation. Thanks.

About the new mollie.com API: Are you suggesting to use the API in a different way then the GH action in Chronoforms? This is probably a bit to technical for me to comprehend. But I know a developer that might be able to take a look at this. I do like the idea of using the API / payment gateway within Chronoforms so I am able to maybe add some more fields or to send emails, etc.

How would we go about using the API within Chronoforms?

Or is there also some documentation on how to build our own custom action in Chronoforms? Or is that not possible or allowed maybe?

I am still trying to figure out the beste way for me to use a simple form to let people donate... Again, I could use something like cciDEAL, but that would include all kinds of options I willen never use...

I thought this was going to be easy ;-)
Jip.
GreyHead 30 May, 2016
Hi Jip,

I found a Mollie API library here on GitHub that looks as if it could be used with CF and which supports a range of payment methods. I'll see if I can get that working on a test form.

Bob
jj135 30 May, 2016
Hi Bob, excellent ;-) It would be great to be able to construct a form where users can:
[list]Select an amount (dorpdown of text)[/list]
[list]Select an available payment option (as available on the mollie account[/list]
[list]Select a bank (only when using the iDEAL payment option in previous step. I think that is not needed for other payment methods?)[/list]

And the direct the user to Moliie and get back with succes of fail.

I have the 'description field' set as a hidden field by the way. So the user doen not have to fill this out.

Or: Only select an amount (and maybe additional info fields that are not needed for mollie.com) and then go to the start payment page of mollie.com where the available payment option are provided) and select a payment methode on that page. Maybe that's easier...

Thanks!
jj135 30 May, 2016
One more thing, if you do not have the time to do this or if there are other reasons you cannot create this, just let me know. No problem. Then I will look for other solutions. Just know I really appreciate your help so far!
GreyHead 02 Jun, 2016
Hi jj135,

After some messing around I have installed the API files from GitHub and made a connection with a Mollie test account and this form is loading the payments methods list from Mollie. Not very exciting as there seems to be only the one option available on the test account . . .

Bob
jj135 03 Jun, 2016
Excellent! In testing mode only the TBM bank is available. That is correct. (The Big Mollie bank...). Are you able (and willing) to update the Mollie Payment Actions to use this new API in the future? Any chance you could give me an ETA on this? It's just that my current project needs to go live soon. They need donations ;-) If you don't have the time to do this, no worries, we will create a custombuild form for this for now.

Kind regrads,
Jip
jj135 03 Jun, 2016
Just had contact with a mollie.com tech. It is possible to first get the available payment methodes and then in a next step chose a bank if iDEAL is selected. But they suggested to create some radio buttons on the form to select the payment option wanted and the include the bank list below the radio button. So the payments options are not retrieved via the API but defined in the form setup. But maybe this can be done both at the same time. Don't know....
jj135 08 Jun, 2016
Hi Bob, again thanks for assisting me with this so far. We do need to move on with our project so for now I will ask a developer we know to create a simple form for donations with mollie.com. But if you ever get around to creating a new CF action for mollie.com (new API) then I am probably still interested. I hope you will get back to me when you do. Thanks so far!
GreyHead 09 Jun, 2016
Hi jj135,

Sorry, I've been rather diverted this week responding to messages about the hacked site :-( - which I think is OK at the moment apart from the warnings.

I got this working calling the API from a Custom Code action; I doubt that re-building the plug-in will get to the top of the list until there is a client who needs it.

Bob
Dvl1 09 Jun, 2016
Hi Bob, can I have the plugin to..
Try to get mollie running in CFv5
Thx
Tom
GreyHead 09 Jun, 2016
1 Likes
Hi Tom,

Done

Bob
wwgg 19 Oct, 2016
Hi Bob

Can I use the mollie connection to?
Looking for a solution to receive iDeal payments through my wordpress chronoform V5 form on my website

thnx
willem
GreyHead 19 Oct, 2016
Hi willem,

I've sent you a PM with a download link but note that the action was written for Joomla! and has not been tested on WordPress as far as I know. It may well need some changes for that.

Bob
jpeters 19 May, 2018
Hello Bob,
is the ideal payment gateway availible / working on Chronoforms v6?..
if so, can you send me a copy..
​
with regards.
GreyHead 19 May, 2018
Hi jpeters,
​
Sorry, no, it hasn't been re-written for CFv6 :-(
​
Bob
jpeters 19 May, 2018
hmm.. will there be a working plugin or no active development for this?..
This topic is locked and no more replies can be posted.