Adding currency type that are not already included in the core system

Dear Ross, how can I add a currency type, other than the ones that come with Gibbon?
«1

Comments

  • Diepiriye,

    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.

    Thanks,

    Ross
  • 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).

    Ross
  • 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.
  • Dear admin,

    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.
  • Daniel,

    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.

    Thanks,

    Ross
  • Could you please Add Nepalese currency ( NPR)
    thanks.
    and also i have a request for feature please review this Link
    http://www.mediafire.com/view/r5d8z3rn3kupaw4/gg.PNG
  • Andrew,

    OK, I have added the currency to the v11 dev branch, in the following commit:

    https://github.com/GibbonEdu/core/commit/42f43a91883ec691a2bde336c27f678209c61d47

    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.

    Thanks

    Ross
  • edited July 2015
    thanks Ross
    i have edited systemsettings.php file and added my own currency.
  • Andrew,

    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.

    Ross
  • Hi Ross, 
    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:

    https://github.com/GibbonEdu/core/commit/5c101ed3cea0d533f02214172f603180608c8297

    Thanks,

    Ross
  • Hello Ross,

    Please add currency "Pakistani Rupee" abbreviated as "PKR"

    Thanks :)
  • Finansky,

    This has been done for v12, as can be seen in this commit:

    https://github.com/GibbonEdu/core/commit/8d3a45bbf1859369982848399a3f3721f43ebf1b

    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.

    Thanks,

    Ross
  • Hello Ross,

    Can you  please consider adding the Jamaican Dollar  (JMD) to your system?

  • Willpro,

    Done! Check out the changes in this commit, which are backwards compatible with v11:

    https://github.com/GibbonEdu/core/commit/b503ee2dbb5ac7c3283c4a7f4e5ffb37fc0a224f

    Thanks,

    Ross
  • Hi Ross,

    Can you please add the Ghanaian Cedi?

    Kind regards,
    Roman
  • Hello Ross,

    Can you add the Bulgarian Lev / BGN in the next version?

    Thanks,
    Dimitar
  • Dimitar,

    Done for v13, and you can see the changes at the following commit:

    https://github.com/GibbonEdu/core/commit/b609d308e549d8361c4390795ddf15554678546c

    If you would like to use the currency in v12 (the current stable version), you can make the same changes to your systemSettings.php file.

    Thanks,

    Ross
  • Thank you Ross
    admin
  • Hi Ross,
    I should thank you for your prompt replies.
    This is my first message on this list and would like you to add the Moroccan MAD currency.
    We are configuring v13 for next week adoption plan.
    Thank you.
  • Alaa, you are welcome! We have added MAD as a currency in the v14 development branch, but the changes are backwards compatible to v13, if you want to make the same change in your version. You can see the details of the changes in the commit below:

    https://github.com/GibbonEdu/core/commit/f1f8add52cc99bea21102aa7d35474fd266e5f01

    Ross
  • Dear Ross ,

    Thank you for the wonderful work you are doing.

    Would you add South African Rand (R) as a currency?

    Thanks,
    Taahir Maula
  • Taahir,

    It is our pleasure...and thank you for your kind, positive feedback.

    If you look in the commit below you will see some changes, which are part of the v15 branch. If you want to, you can copy the change to /src/Forms/FormFactory.php into your own v14 file of the same name, and the new currency should show up:

    https://github.com/GibbonEdu/core/commit/35031caccef78bff75d31d094a18b0c63304181d

    Thanks,

    Ross
  • Hi Ross, can you add the South African Rand.
    Thanks
Sign In or Register to comment.