Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    22
    Plugin Contributions
    0

    Default How to create new payment module?

    Hi all,

    I am busy a long time to make new payment module for our shop but don't work.

    I try edit and change some payment modules what I download here from the site but still no success. Is some manual how I can create new payment module + order page???

    I checked https://www.zen-cart.com/tutorials/i...hp?category=12 but nothing.

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: How to create new payment module?

    There's a very basic outline of their structure here.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    22
    Plugin Contributions
    0

    Default Re: How to create new payment module?

    tnx kuroi,

    these basis i found in all payment options what i have eddit and try till now.

    I try to find some options and codes,
    as sample i was busy testing :



    vxsbill.php ;;


    class vxsbill {
    var $code, $title, $description, $enabled, $sort_order;


    // class constructor

    function vxsbill() {
    global $order, $_POST;

    $this->code = 'vxsbill';
    $this->title = MODULE_PAYMENT_VXS_TEXT_TITLE;
    $this->description = MODULE_PAYMENT_VXS_TEXT_DESCRIPTION;
    $this->sort_order = MODULE_PAYMENT_VXS_SORT_ORDER;
    $this->enabled = ((MODULE_PAYMENT_VXS_STATUS == 'True') ? true : false);

    if ((int)MODULE_PAYMENT_VXS_ORDER_STATUS_ID > 0) {
    $this->order_status = MODULE_PAYMENT_VXS_ORDER_STATUS_ID;
    }

    if (is_object($order)) $this->update_status();

    $this->form_action_url = 'vxs_process.php';

    }



    function process_button() {

    global $_POST, $order;



    $process_button_string =
    zen_draw_hidden_field('desc', 'Purchase from ' . STORE_NAME) .
    zen_draw_hidden_field('amount', $order->info['total']) ;
    return $process_button_string ;
    return false;
    }




    vxs_process.php



    $username = MODULE_PAYMENT_VXS_USER;
    $password = MODULE_PAYMENT_VXS_PASS;
    $site = MODULE_PAYMENT_VXS_SITE;
    $package = MODULE_PAYMENT_VXS_PACKAGE;

    $price = $_POST['amount'];
    $description = urlencode($_POST['desc']);

    $result = "";

    $spwprice = $price*100;

    $request = "https://secure.vxsbill.com/create_order.php3?......;


    ..

    my question is where i can find list with more info about these functions: zen_session_register
    zen_draw_hidden_field

    $this->description = MODULE_PAYMENT_XXXX_TEXT_DESCRIPTION;
    $this->sort_order = MODULE_PAYMENT_XXXX_SORT_ORDER;
    $this->enabled = ((MODULE_PAYMENT_XXXX_STATUS == 'True') ? true : false);



    tnx

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: How to create new payment module?

    Quote Originally Posted by mscro View Post
    my question is where i can find list with more info about these functions: zen_session_register
    zen_draw_hidden_field
    They are defined in the admin/includes/functions/sessions.php and admin/includes/functions/html_output.php files respectively.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Aug 2007
    Posts
    4
    Plugin Contributions
    0

    customer issue Re: How to create new payment module?

    I have an SDK from SLIM CD which is my client's gateway. I have all the puzzle pieces but I don't know what to do with them to make the payment module.

    I know some php and mysql, but need more of a 1.2.3. type tutorial to see what to do. anysuggestions would be most appreciated

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: How to create new payment module?

    Quote Originally Posted by whyzz View Post
    I know some php and mysql, but need more of a 1.2.3. type tutorial to see what to do.
    I'm afraid that you're looking for something that doesn't exist, and maybe can't exist. There are certainly hundreds and possibly thousands of payment gateways out there each with their own idiosyncrasies.

    There is a general structure for Zen Cart payment modules which is outlined in the Wiki entry I referenced earlier. But a 1.2.3 guide that went beyond this would either be so general as to not really tell you very much, or if it tried to deal with the complexities introduced by different gateway APIs would be overwhelmingly complex.

    On those rare occasions that I've written payment modules (not a favorite job) I just focus on the specifics of the one in front of me and concentrate on mapping their API (usually well described in their documentation) to Zen Cart's payment mod structure (outlined in the Wiki).
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  7. #7
    Join Date
    Jul 2004
    Posts
    5
    Plugin Contributions
    0

    Default Re: How to create new payment module?

    I am also creating a payment module for MiraPay, everything working card charged but when it back to store it goes to payment page again with saying cradit card processing error.

    can you let me know what values need to pass at checkout_process page ?
    which field will need decline or approve value? and what type of value? as my marchent give APPROVED,DECLINED and CANCEL

 

 

Similar Threads

  1. 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
  2. How to create new payment module?
    By Macedonium in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 15 May 2009, 09:47 PM
  3. How do I create a new payment module?
    By meeven in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 12 Aug 2007, 01:29 PM
  4. How to create a payment module?
    By josedanielestrada in forum Addon Payment Modules
    Replies: 4
    Last Post: 15 Aug 2006, 05:08 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