Forums

How to create our own payment plugin?

jj135 06 Oct, 2017
Hi! We would like to create out own payment plugin for Chronoforms 6. We have a reservation form on one of our client website we need to add a payment to. So we would like to create a plugin for CF6 to make this possible.

Is there some documentation on this? Or could we use an existing payment plugin as an example to study? Maybe we could also get a general wokrflow description on how to build and implement such a plugin?

We want to create a payment plugin for mollie.com. We have used this paymentprovider in some of our custom modules and components as well, so we know how to use their API. Now we just need to figure out how to intergrate this in a CF6 form.

Any info is welcome! Thanks.
Max_admin 14 Oct, 2017
Hi Jip,

You can pass the form data to any payment provider using the curl or redirect actions, if you want to build a custom plugin then its easy too, let me know and I will write a FAQ on this.

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
jj135 14 Oct, 2017
Hi Max, a FAQ on creating our own plugin would be greatly appreciated! With a custom plugin I think we have some more control over for example handling return (error/success) messages from the payment provider.

The new site looks great!

Kind regards,
Jip
GreyHead 18 Oct, 2017
Hi Jip,

Not immediately useful to you but I do have a Mollie plug-in for CFv5 that I can send you. I have no idea how to convert that to work with CFv6 but it might give you a place to start.

Bob
jj135 06 Nov, 2017
Thanks Bob. Could you send me the plugin? As you said, it might be a good starting point.

@Max: Any uopdates on the FAQ about creating a CF6 custom plugin?

Kind regards,
Jip
Max_admin 28 Nov, 2017
Hi Jip,

Apologizes for the late reply!

Till the moment I could not free enough time to write this, I would recommend using the curl action file as an example on how to write a plugin, that one should be easy enough to inspect, writing a plugin for v6 is fairly easy

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 29 Nov, 2017
Hi Jip,

Here are some very basic clues.

Unlike CFv5 the CFv6 actions/plug-ins are in a different place /libraries/cegcore2/admin/extensions/chronofc/functions/ each subfolder in there is an action.

If you look at the cURL action you will see four files:

curl.ini : basic settings for the action - name, title, action group and events
curl_config.php : the code to set the action configuration you see in the form Setup tab
curl_output.php : the code to be executed when the action runs
index.html : an empty file according to Joomla! practice

In CFv5 actions the first three of these were typically in a single file (though In mine I separated out the config part)

Bob
This topic is locked and no more replies can be posted.