Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2006
    Posts
    154
    Plugin Contributions
    0

    Default A Linkpoint Headache

    Hi again...

    Using 3.7.x store with a Linkpoint module -- the problem is the passing of a customer id. It shows up blank on the details in linkpoint under "orders" and the store seems to not use the customer id at all, but generates a random number. Is there a way to have the store, generate the customer id in the module, instead of using that random number?

    FYI - We use authorize only, and not charge, so we have to batch and approve sales. The long id number means nothing and gives no way to track sales. When I viewed the code on the linkpoint_api.php file, I saw a character when I printed the DB in Linkpoint that says "oid" which seems to generate a random number. It is left blank when printed on the Linkpoint CC Report, but it seems to be the item that generates this number...or am I incorrect on that? Does anyone know how I could rework this so that we can easily see the invoice/customer ID in the stats, rather than the generated the random number? This would be most helpful.

    Thanks as always for your energy and support,
    Kinget
    Last edited by kinget; 2 Nov 2007 at 12:55 AM. Reason: not replace but rework

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: A Linkpoint Headache

    When v1.3.8 comes out there will be much improved functionality in the Linkpoint module, including the things you are mentioning.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jul 2006
    Posts
    154
    Plugin Contributions
    0

    Default Re: A Linkpoint Headache

    Hi Dr. Byte....

    I'll look forward to that update. In the meantime,(update) -- I managed to figure out the line to add the customer id, but it adds the "last" digit of our invoices, and not the full invoice number.

    This line was left blank in the linkpoint_api.php. Above this area of myorder, there is another area that describes "oid" to generate the random number. Below that are these "my order lines" with this instruction --

    // "oid" - Order ID number must be unique. If not set, gateway will assign one.
    $myorder["oid"] = "";

    and I replaced it with:
    // "oid" - Order ID number must be unique. If not set, gateway will assign one.
    $myorder["oid"] = $_SESSION['customer_id'];

    The problem is that only gives me the "last" digit of the invoice number and not the entire invoice number. If I could change that to a line that would produce my entire invoice number, that would solve my problem. We have to have a way to track these sales, because we authorize only at the store, and each order is reviewed before it is finalized. So it's essential that we have some way of tracking. What I've figured out is a step in the right direction and better than having that random number, but not ideal. Would you know the line I could add in it's place that would give me the entire invoice number? After testing it, it seemed to work with no problems.

    Thanks as always for your expert help. :-)
    Kinget

    Quote Originally Posted by DrByte View Post
    When v1.3.8 comes out there will be much improved functionality in the Linkpoint module, including the things you are mentioning.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: A Linkpoint Headache

    I don't recommend the approach you are trying to use ... because you're sending the customer ID as the order ID, and order ID's need to be unique. You're running the risk of getting that customer's order rejected the next time they try to place another order.

    If you want to match up customer's orders with customer ID, send the customer ID like this instead:
    Code:
        $myorder["userid"]   = $_SESSION['customer_id'];
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Jul 2006
    Posts
    154
    Plugin Contributions
    0

    Default Re: A Linkpoint Headache

    Ah...thank you for this. I'll make that adjustment. Actually, ideally I want the invoice number to match the order id, not exactly the customer id. So for example, if it's invoice "2504" the order id in linkpoint reads "2504"...

    Quote Originally Posted by DrByte View Post
    I don't recommend the approach you are trying to use ... because you're sending the customer ID as the order ID, and order ID's need to be unique. You're running the risk of getting that customer's order rejected the next time they try to place another order.

    If you want to match up customer's orders with customer ID, send the customer ID like this instead:
    Code:
        $myorder["userid"]   = $_SESSION['customer_id'];

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: A Linkpoint Headache

    Quote Originally Posted by kinget View Post
    Actually, ideally I want the invoice number to match the order id, not exactly the customer id. So for example, if it's invoice "2504" the order id in linkpoint reads "2504"...
    That's a chicken-and-egg situation. When the transaction is sent to Linkpoint, the order hasn't been created yet, so the order number isn't known.

    In the v1.3.8 edition, the module attempts to approximate the order number before sending for processing. It's not perfect, but it's better.

    In a future version of Zen Cart, things may be changed to actually generate the order before asking for payment; but at the present time, the order is only "created" after payment has been completed (or at least after the gateway has given a "success" response from authorizing the card).
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Jul 2006
    Posts
    154
    Plugin Contributions
    0

    Default Re: A Linkpoint Headache

    Hi Dr. Byte,

    I see. This is a huge problem for us. It's so essential to be able to track the invoice number matched to the order number. We had that running before on Linkpoint Connect, with the old order form, and could see the invoice number. It's the only way of being able to match orders. I'm not sure I follow why the order has to be created, if you use the invoice number, wouldn't that be a unique id? I'm an authorize.net person personally, but they wanted linkpoint, so I'm stuck with it.

    I did use the code you gave me. It placed the customer id as the "user id" -- on another cart we have the user id is, the store number? I guess I can tell the office to track looking at the user id rather than the order id to match the orders for now. I was really hoping to use the invoice number...is that possible? That would work fine, rather than using a customer id. So that the user id, reads the invoice number?

    Thank you again for your help.
    Kinget

    Quote Originally Posted by DrByte View Post
    That's a chicken-and-egg situation. When the transaction is sent to Linkpoint, the order hasn't been created yet, so the order number isn't known.

    In the v1.3.8 edition, the module attempts to approximate the order number before sending for processing. It's not perfect, but it's better.

    In a future version of Zen Cart, things may be changed to actually generate the order before asking for payment; but at the present time, the order is only "created" after payment has been completed (or at least after the gateway has given a "success" response from authorizing the card).

  8. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: A Linkpoint Headache

    Send me a PM if your customer is interested in customizing the code to suit their needs.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Payflow-UK headache
    By DaveS in forum PayPal Express Checkout support
    Replies: 10
    Last Post: 18 Jul 2008, 09:52 PM
  2. header headache
    By sydmich in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Jun 2007, 04:42 PM
  3. Email Headache
    By d2leader in forum General Questions
    Replies: 0
    Last Post: 29 Sep 2006, 08:12 PM
  4. Big headache
    By Ian Davies in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 18 Sep 2006, 11:51 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR