Dear Ross, how can I add a currency type, other than the ones that come with Gibbon?
A good question! You can add a currency yourself, but it is not so easy. If you let me know what currency(ies) you want to add, I can put them into v10, which is due out in late June. Although not all currencies work with PayPal, if your currency is not supported, it should fail gracefully if you PayPal is set up.
I would have love to add the Nigerian Naira (sign: ₦; code: NGN) to enable Nigerian pay in Naira and Kobo. In the case where paypal is the the only payment option for now, cant we add more payment types like interswitch, quickteller and Gtpay’. And these payment options will work well with our local users and they will be open to options too, which I think is a great idea.
Diepiriye, I have added NGN to the latest dev code, which will come out as v10. You can see the diffs at https://github.com/GibbonEdu/core/commit/b8789ce22d33ae25213ac4d899c05a8beced8c48, if you want to copy the code into your current install.
I would definitely like to add more Gateways, and this might happen in v11. If I could offer you one of interswitch, quickteller and Gtpay, which would you select to be included in Gibbon? Which is best documented with the most stable API? I can’t make any promises right now, but I could look into it. I can certainly see the benefit in markets not covered by PayPal (which, based on currency, are many).
I will prefer quickteller, almost everyone uses it
Thank you Ross for the Naira addition
Diepiriye, thanks. I have put quickteller integration into the todo list for v11, and hopefully we can pull it off for you. I will let you know when we have some progress, but I guess it will most likely be November time.
i would like to integrate the interswitch payment gateway (and quickteller) by myself. I think November is too long. I just need the area in the gibbon core to add the necessary codes.
Thanks in advance.
That is a good question, and I would be grateful if you are successful at this.
The first step would be to generalise the settings in Admin > System Admin > Third Party Settings. At current there is a section called “PayPal Payment Gateway”. This would need to become “Payment Gateway Settings”, and there would need to be a new setting called something like payment type, which would be a drop down including PayPal, Interswitch and QuickTeller, etc. I suggest you look at the other settings on that page, how they are stored (gibbonSetting in database), how they are named, etc. In adding a new setting, you would need to add the relevant SQL to CHANGEDB.php.
Do you want to create a branch of v11, and try to edit this aspect, and then get back to me when you have done so, and we can then look at integrating the Gateway code.
Could you please Add Nepalese currency ( NPR)
and also i have a request for feature please review this Link
OK, I have added the currency to the v11 dev branch, in the following commit:
You can get the changed files and upload them to your system: they should be backwards compatible with v10, if I am not mistaken.
In terms of the new feature, please add this as a separate forum topic, and I will get back to you on it.
i have edited systemsettings.php file and added my own currency.
Awesome: just make sure what you have added is the same as in the commit I showed, otherwise you might have issue next time you upgrade.
i have edited systemsettings.php file and added new currency Egyptian Pound EGP (£), can you please consider adding it to next release, and plz advice if I have to modify other files.
ramymabrouk, that should be fine. It should also go in the installer, but this is a moot point if you have already installed.
I have included the currency in the official version now, so it should keep working even after update. You can view the changes at this commit:
This has been done for v12, as can be seen in this commit:
The change is backwards compatible to v11, so you can take the affected file (/modules/System Admin/systemSettings.php is the only important one for an existing installation), and use it on a v11 install.
Done! Check out the changes in this commit, which are backwards compatible with v11: