Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Posts
    52
    Plugin Contributions
    0

    Default PayPal IPN Checkout issues: IPN Admin page & PP requiring signup

    After upgrading a Zencart v1.2.4 site to v1.3.6, I noticed the following error when I got to Customers --> PayPal IPN:

    1054 Unknown column 'p.zen_order_id' in 'on clause'
    in:
    [select count(*) as total from paypal as p left join orders as o on o.orders_id = p.zen_order_id]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
    Also, attemps to access my 'ipn_main_handler.php' handler page via browser result in the error:

    1054 Unknown column 'zen_order_id' in 'field list'
    in:
    [SELECT zen_order_id, paypal_ipn_id, payment_status, txn_type, pending_reason FROM paypal WHERE txn_id = '' ORDER BY zen_order_id DESC ]
    No other ill effects from the database upgrade have been noticed, if that's the cause.

    Second issue: PayPal is requiring customers to create a PayPal account despite the fact that the setting in "PayPal Account Optional" in Profile --> Website Payment Preferences is set to TRUE. This was previously working but may have stopped working before the 1.3.6 upgrade, i'm not certain.

    Any thoughts or advice?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: PayPal IPN Checkout issues: IPN Admin page & PP requiring signup

    1. The zen_order_id field was added to the "paypal" database table in the upgrade from v1.2.1 to 1.2.2. Seems like you must have missed that step from an earlier upgrade.

    2. There's not much Zen Cart can do about PayPal requiring a customer to have a PayPal account in order to complete a payment. However, you might note that a PayPal "business" account allows non-PayPal customers to pay you, but "premier" and "personal" accounts are less flexible. You might want to explore this matter with PayPal customer service.

    3. Zen Cart v1.3.7 is out and has a huge number of PayPal improvements, including the addition of PayPal Express Checkout. You might want to explore these options as well.
    .

    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
    Apr 2005
    Posts
    52
    Plugin Contributions
    0

    Default Re: PayPal IPN Checkout issues: IPN Admin page & PP requiring signup

    Quote Originally Posted by DrByte View Post
    1. The zen_order_id field was added to the "paypal" database table in the upgrade from v1.2.1 to 1.2.2. Seems like you must have missed that step from an earlier upgrade.

    2. There's not much Zen Cart can do about PayPal requiring a customer to have a PayPal account in order to complete a payment. However, you might note that a PayPal "business" account allows non-PayPal customers to pay you, but "premier" and "personal" accounts are less flexible. You might want to explore this matter with PayPal customer service.

    3. Zen Cart v1.3.7 is out and has a huge number of PayPal improvements, including the addition of PayPal Express Checkout. You might want to explore these options as well.
    Thanks for your help with this... After browsing the forums for a long time I've seen how much you've contributed to the ZC community. Thanks

    1) this installation started at 1.2.4, i never used 1.2.1 or 1.2.2. Can I simply add these fields to the DB using phpMyAdmin?

    2) I just thought maybe this was occuring because PP is not receiving something from ZC that it should be. I know it's an option for the Premier Accounts so it must be supported... By 'business' account do you mean the PayPal Pro account?

    3) Ooops. I meant to say 1.3.7, typo. Repeatedly. It was never 1.3.6. I'd love to use PP Express CO but as I understand it only the Pro accounts support it.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: PayPal IPN Checkout issues: IPN Admin page & PP requiring signup

    PayPal Express Checkout is supported by Business Accounts. (although some have experienced success with just Premier accounts too)
    That does NOT have anything to do with "Pro".
    PayPal offers 3 account types: personal, premier, business. The differences are documented on their website.

    "Pro" is just the ability to accept credit cards directly on your site without the customer ever going to the PayPal site to make payment.
    .

    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
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: PayPal IPN Checkout issues: IPN Admin page & PP requiring signup

    Quote Originally Posted by Veazer View Post

    1) this installation started at 1.2.4, i never used 1.2.1 or 1.2.2. Can I simply add these fields to the DB using phpMyAdmin?
    a. I have no idea what *else* may be missing from your database
    b. you can fix the "specific" problem with the column-not-found error by running this via phpMyAdmin:
    Code:
    ALTER TABLE paypal ADD COLUMN zen_order_id int(17) NOT NULL default '0' AFTER paypal_ipn_id;
    I make no guarantees about anything else. I'm very surprised that you're missing that field, as it's been there from a long time back.
    .

    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.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: PayPal IPN Checkout issues: IPN Admin page & PP requiring signup

    Have you installed the latest patch update for PayPal and v1.3.7?
    http://www.zen-cart.com/forum/showthread.php?t=56216
    .

    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
    Apr 2005
    Posts
    52
    Plugin Contributions
    0

    Default Re: PayPal IPN Checkout issues: IPN Admin page & PP requiring signup

    Quote Originally Posted by DrByte View Post
    PayPal Express Checkout is supported by Business Accounts. (although some have experienced success with just Premier accounts too)
    That does NOT have anything to do with "Pro".
    PayPal offers 3 account types: personal, premier, business. The differences are documented on their website.

    "Pro" is just the ability to accept credit cards directly on your site without the customer ever going to the PayPal site to make payment.
    Thanks for the clarification. Their website does not explain this sufficiently imho, users need to actually click signup to find a page detailing the differences. The best I could find before that was this comparison page that just shows differences between standard, pro, etc. but doesn't even mention personal, premier and business account. That said, this is indeed a business account.

    I thought Paypal express checkout was the same as Pro (ie, accepting cards directly on your site) so that only compounded my confusion. Since installing PP EC I see the differences.

    Quote Originally Posted by DrByte View Post
    a. I have no idea what *else* may be missing from your database
    b. you can fix the "specific" problem with the column-not-found error by running this via phpMyAdmin:
    Code:
    ALTER TABLE paypal ADD COLUMN zen_order_id int(17) NOT NULL default '0' AFTER paypal_ipn_id;
    I make no guarantees about anything else. I'm very surprised that you're missing that field, as it's been there from a long time back.
    I think I beginning to see the cause of the problem now, but I am unsure how to fix it. And I’m scared. I'll explain my [possibly botched] upgrade procedure, IIRC

    I backed up the DB from the 1.2.4 store
    I created a second DB on the server from this backup.
    I created a fresh install of 1.3.7 and selected the new DB
    During install, ZC recognized the old DB and upgraded the DB to 1.3.7

    The problem is my old DB had 'zen_' prefixes for all fields and the new DB does not. I'm not sure how i managed that, i'll claim negligence on my part...

    Therefore, it seems that ZC properly recognizes the fields in the new DB lack the 'zen_' prefix (all my customers, products and orders are present) except for the paypal module which is still looking for ‘zen_order_id’ when it should be looking for just ‘order_id’? I do indeed have ‘order_id’ on the ‘paypal’ table and the old DB has ‘zen_order_id’ on the ‘zen_paypal’ table. (Which seems a little strange, since none of the other fields on the ‘zen_paypal’ table have the ‘zen_’ prefix… Perhaps a naming scheme change since 1.2.4? )

    Is there a way for me to make sure the PP modules are looking for the right table & fields since we can see they are looking for the old ones?

    Quote Originally Posted by DrByte View Post
    Have you installed the latest patch update for PayPal and v1.3.7?
    http://www.zen-cart.com/forum/showthread.php?t=56216

    Just did it after reading your reply. It fixed the ‘ipn_main_handler.php’ error but I still get the other error attempting to access the IPN page in admin.

    Thanks again.

  8. #8
    Join Date
    Apr 2005
    Posts
    52
    Plugin Contributions
    0

    Default Re: PayPal IPN Checkout issues: IPN Admin page & PP requiring signup

    Quote Originally Posted by Veazer View Post
    ...Which seems a little strange, since none of the other fields on the ‘zen_paypal’ table have the ‘zen_’ prefix…
    Yay! This seems to be the problem. Somehow the 'order_id' field from the 'zen_paypal' table of the 1.2.4 got a prefix as well, rather than just all the tables. If I rename the 'order_id' field in the new db to 'zen_order_id' then everything seems to work fine.

    I assume my fix is a hack, though, and the preferred method would be to leave the db as it was and change whatever is looking for 'zen_order_id', right?

 

 

Similar Threads

  1. Order processed, but no confirmation email & no details on admin (Paypal IPN)
    By garou in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 26 Feb 2010, 09:36 AM
  2. Paypal IPN Checkout & GV Error
    By ymbd in forum Built-in Shipping and Payment Modules
    Replies: 36
    Last Post: 12 Sep 2008, 06:59 PM
  3. I'm using PayPal Express and PayPal IPN, should I remove PayPal IPN?
    By tj1 in forum PayPal Express Checkout support
    Replies: 3
    Last Post: 3 Nov 2007, 05:20 AM
  4. Paypal IPN & Express Checkout
    By a4tech in forum PayPal Express Checkout support
    Replies: 0
    Last Post: 11 May 2007, 01:26 PM
  5. Paypal IPN on Checkout Page
    By digidiva-kathy in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Dec 2006, 06:23 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