Thread: custom payment

Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Posts
    8
    Plugin Contributions
    0

    Default custom payment

    Hi,


    first post, intermediate asp programmer, learning php (not awful at it). However I'm REALLY struggling with modifying the Zen code because everything is a special zen function instead of straightforward code, everything is an include wrapping a class or a function or a template and I do not have time to learn to speak Zen right now. I'm sorry, I don't. I'm trying, but I am getting panicked. I have to finish this NOW.

    I've made a custom payment module ...but I need a few more parameters passed to it and have no idea how to get them from the cart to the form handler (which passes the data to my payments processor ) I don't even know where to look. I can't even figure out where it's best to run a query but am about to just write some queries in my form handler to get the data rather than have it passed to the cart. argh. maybe I should just do that. I don't know. (?????) I was trying to find the appropriate places in the process and have it written to session data or a hidden field that would post to my handler.

    I need:
    the name of what was ordered
    the description of what was ordered
    the model number and the quantity
    what category this product is in (not required but it'd be nice)
    the tax SEPARATE from the total
    the total SEPARATE from the tax but with shipping
    the handling fee (which I have to program in based on which zip code they're in, there may or may not be one... working on this...setting a flag Y/N)

    any ideas?

    test site is here:

    http://www.kyflorists.com/zen/

    right now i'm just having the screen print the output so I can see what I'm getting.

    all help gratefully appreciated with much love and kudos and bowing and scraping.

    edited: typos

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: custom payment

    What payment gateway is the client using?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Nov 2006
    Posts
    8
    Plugin Contributions
    0

    Default Re: custom payment

    one that I am building.

    the payment has to post to a green screen application. it isn't a traditional processor. I'm building a form handler to work with it. But basically, the idea is normal, build a string, send it. I'm busy building my queries to get the fields now ...quick and dirty ...but if anyone can help me with
    WHERE to get this stuff and just have it passed as hidden form data I'll go back and do it that way. I'd rather have it that way.

    I understand dimly the entire idea of how the cart is built with the notifiers and stuff, have even sorted out how things fit together sort of but when it comes to understanding the best way to implement my changes ... sorta stymied. I'm basically hacking up templates for now and trying to avoid touching all other pages.
    Last edited by redtoad; 18 Dec 2006 at 09:47 PM.

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: custom payment

    Have you looked at the way other payment module gather and pass the information?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  5. #5
    Join Date
    Nov 2006
    Posts
    8
    Plugin Contributions
    0

    Default Re: custom payment

    yes, that is how i figured out how to get the parameters that i have.

    the ones i still need are not in them.


    even names where to look or a run down of

    "this is the overview file"

    "this file connects to the overview file like this"

    would help point me in the right direction. I'm trying to figure it out on my own now reading through order.php

  6. #6
    Join Date
    Nov 2006
    Posts
    8
    Plugin Contributions
    0

    Default Re: custom payment

    okay, here is what I have so far...

    << function process_button() {

    global $_SERVER, $order;



    $sequence = rand(1, 1000);

    $process_button_string = zen_draw_hidden_field('x_Login', MODULE_PAYMENT_WTF_LOGIN) .

    zen_draw_hidden_field('x_Card_Num', $this->cc_card_number) .

    zen_draw_hidden_field('x_Exp_Date', $this->cc_expiry_month . substr($this->cc_expiry_year, -2)) .

    zen_draw_hidden_field('x_Amount', number_format($order->info['total'], 2)) .


    // zen_draw_hidden_field('x_currency_code', $_SESSION['currency']) .




    zen_draw_hidden_field('x_Cust_ID', $_SESSION['customer_id']) .

    zen_draw_hidden_field('x_first_name', $order->billing['firstname']) .

    zen_draw_hidden_field('x_last_name', $order->billing['lastname']) .>>


    and so on. then we have:


    << return $process_button_string;>>

    okay, so I should be able to write in something like....


    zen_draw_hidden_field('x_name', $order->products['name']) .
    zen_draw_hidden_field('x_model', $order->products['model']) .

    to get all of my happy product names/model numbers.

    except that I need a loop to get all of the products and this product array in order.php has an index number and i'm now trying to figure out the syntax I need to pull that data.

    beautiful. lovely. gorgeous.

    (sotto voce muttering)

    <officeSpaceBoss> um... yeah </officeSpaceBoss>
    Last edited by redtoad; 18 Dec 2006 at 11:14 PM. Reason: clarity

 

 

Similar Threads

  1. Custom payment option?
    By sim8729 in forum PayPal Website Payments Pro support
    Replies: 1
    Last Post: 26 Sep 2012, 04:26 PM
  2. Custom Payment Module
    By shocker in forum Addon Payment Modules
    Replies: 8
    Last Post: 21 Dec 2008, 08:31 PM
  3. Custom Payment Module
    By DiZZ in forum General Questions
    Replies: 0
    Last Post: 2 Oct 2007, 05:54 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