Payment Gateway Plugin Development

Discussion in 'Plugins & Reports' started by Dileep Ratnayake, Mar 1, 2016.

  1. Dileep Ratnayake

    Dileep Ratnayake New Member

    Joined:
    Jun 12, 2012
    Messages:
    14
    Likes Received:
    0
    Hi guys,

    Would like to develop a payment gateway plugin for a locally available bank/gateway provider.
    Any documentation?
    Would prefer to do it my self without troubling you guys since the time frame is somewhat urgent. (No offense intended).

    Cheers,
    Dileep
     
    #1
  2. CE-Juan

    CE-Juan Moderator Staff Member

    Joined:
    Aug 27, 2011
    Messages:
    625
    Likes Received:
    70
    Hi,

    The simplest way is to get the code of an existing plugin.
    Get a plugin similar to the one you need to create. For example, if it will store the Credit Card in your application, then use the code of a plugin already doing so, etc.
    The plugins code are located under \plugins\gateways

    Please take in count that in the name of the plugin folder and files, lower case and upper case matters. For example, lets say you will create a plugin named My Payments:
    Then, you can name the folder mypayments
    Inside it, you can create the files:
    \plugins\gateways\mypayments\PluginMypayments.php
    \plugins\gateways\mypayments\callback.php
    \plugins\gateways\mypayments\PluginMypaymentsCallback.php

    Also, inside the file \plugins\gateways\mypayments\PluginMypayments.php you hould have:
    class PluginMypayments extends GatewayPlugin​


    Thanks
     
    #2

Share This Page