Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2009
    Posts
    19
    Plugin Contributions
    0

    Default Create payment module for cc gateway

    Hi all! I need to create a payment module for Zen Cart. I'm using the latest version of Zen Cart. My bank offers a payment system with credit card, they need some information such as order id, total amount, etc. They also want two url, ok and ko page, that are the pages that are called after collecting the cc details (on their website) and checking for the payment. I tried looking at other paymen modules, but didn't find any info. Also, the payment page on the wiki is almost empty, not useful at all. Since the payment is performed by their system, I just need to know something: for example, is the order inserted in the db at checkout? This way I can be sure it's in the db, just in case something goes wrong in the payment process. After this, when the user selects "mypayment", I need to forward the user to the bank website, adding some variables in post such as order id etc. After the payment process, the system will call either the ok or ko page, where I can update the order statu, setting it to payed or to error. In case of error I could contact the user or something like that. Any help would be really appreciated.

    thanks

  2. #2
    Join Date
    Mar 2009
    Posts
    19
    Plugin Contributions
    0

    Default Re: Create payment module for cc gateway

    Any ideas?

  3. #3
    Join Date
    Mar 2009
    Posts
    19
    Plugin Contributions
    0

    Default Re: Create payment module for cc gateway

    Still stuck in this, anyone has a suggestion on how to create a payment module?

  4. #4
    Join Date
    Apr 2009
    Location
    Italy
    Posts
    3
    Plugin Contributions
    2

    Default Re: Create payment module for cc gateway

    Hi,
    I'm in the same situation... It's so strange that we are alone trying to develop a module like this.

    I'm developing my module starting from the existing ones PayPal and Authorized.net, but I'm a little confused

    If you want we could communicate by email.

    My big trouble now is the MAC code. Do you use it?

    Bye bye

    Pier

  5. #5
    Join Date
    Mar 2009
    Posts
    19
    Plugin Contributions
    0

    Default Re: Create payment module for cc gateway

    Hi, I've sent you a PM.

  6. #6
    Join Date
    Apr 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: Create payment module for cc gateway

    did you guys figure making a payment module for the zen cart?

  7. #7
    Join Date
    Apr 2009
    Location
    Italy
    Posts
    3
    Plugin Contributions
    2

    Default Re: Create payment module for cc gateway

    Hi dionciel,
    we both made some test and it is quite ready... It works fine from my site to gateway site, when the customer pay, it come back, but I have some problems with method "before_process" (in my module payment).

    If you want some detailed information, you can contact me. We are speaking about to release a module when everything goes right.

    Bye.

  8. #8
    Join Date
    Apr 2009
    Location
    Italy
    Posts
    3
    Plugin Contributions
    2

    Default Re: Create payment module for cc gateway

    Hi,
    done!

    I post this for who's looking for some information.

    To develop a payment module for cc through a gateway, you can start from (i.e.) "dirbank.php".

    We have to edit the method process_button(), before_process() and after_process(). Of course there are some other methods to change, but they are normally changed for every payment module (I mean install(), remove(), keys(), etc.).

    First one is the one that send data to the gateway. Usually with POST method. The url of the gateway is store in "form_action_url" in the class creator.
    Second one is called when a customer transaction went well. In this method we need to validate the information returned.
    Last one is used to store some information in our db or whatever you want.

    For more details you can search "keyclient" in the add ons (in this days I'll do this).

    Anyway, every gateway has it's differences, so it's impossible to release a generic module. You must custom it for your needed.

    Bye.

 

 

Similar Threads

  1. Developer wanted to create plug-in for FAC Payment Gateway
    By FAC Bermuda in forum Addon Payment Modules
    Replies: 0
    Last Post: 18 Mar 2013, 01:30 PM
  2. v139h Module for Atom payment gateway
    By miscellaneous in forum Addon Payment Modules
    Replies: 0
    Last Post: 7 Oct 2012, 07:09 AM
  3. Create a new module for International Checkout payment module
    By icecold in forum Addon Payment Modules
    Replies: 63
    Last Post: 27 Apr 2010, 03:04 AM
  4. Help for new payment module - v-p gateway
    By jp100 in forum Addon Payment Modules
    Replies: 1
    Last Post: 8 Feb 2008, 10:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg