osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Paypal not returning.

This is a discussion on Paypal not returning. within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; I followed the PayPal instructions right down to the "trailing slash" and set up the SandBox at PayPal perfectly. I ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 10-11-2006, 08:35 AM
Member
 
Join Date: Jan 2005
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Lobotaman
Default Paypal not returning.

I followed the PayPal instructions right down to the "trailing slash" and set up the SandBox at PayPal perfectly.

I already uncommented line 53 in checkout_process.php

After I click the PAY button on PayPal, I can print a paper invoice from PayPal and there is a button that says [Return to Merchant].

When I click that, I get this error:

Fatal error: Call to a member function on a non-object in /home/###admin/###-www/catalog/includes/modules/payment/paypal_ipn.php on line 521

Anybody know the issue?

Thanks,

Lobo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 10-11-2006, 06:05 PM
New Member
 
Join Date: Oct 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
stevew
Default RE: Paypal not returning.

I am also having this problem...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 10-12-2006, 10:46 AM
Member
 
Join Date: Jan 2005
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Lobotaman
Default

Still no solution to this problem. I found others with the same problem in the past several days.

Here is the code AND LINE NUMBERS from the file: catalog/includes/modules/payment/paypal_ipn.php

Code:
513  //------insert customer choosen option eof ----
514        $total_weight += ($order->products[$i]['qty'] * $order->products[$i]['weight']);
515        $total_tax += tep_calculate_tax($total_products_price, $products_tax) * $order->products[$i]['qty'];
516        $total_cost += $total_products_price;
517
518        $products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . ' (' . $order->products[$i]['model'] . ') = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "\n";
519        }
520  // Added Bugfix 157
521      $order_total_modules->apply_credit();
522      
523  // lets start with the email confirmation
Any help would be so appreciated.

Regards,

Lobo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 10-12-2006, 06:24 PM
Member
 
Join Date: Jan 2005
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Lobotaman
Default More information on this error

If I comment out Line #521 above, the order does return
FROM
https://www.sandbox.paypal.com/us/cgi-bin/webscr
AND GOES TO
http://mydomain.com/catalog/checkout_payment.php

As a result, the oscMAX 2.0 RC3 cart for this customer remains full even though the PayPal transaction shows up in the Sellers and Buyers accounts.

It's supposed to go to FINISHED and some other php file, right?

I'm trying here. Does anybody at all know how to address this issue?

Thanks,

Lobo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 10-13-2006, 05:20 PM
New Member
 
Join Date: Oct 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
stevew
Default RE: More information on this error

I will have more time tomorrow to look at the issue... I am not going to be much help but it looks like we are going to have to help ourselves here Should we submit this to the bug tracker?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 10-15-2006, 01:31 PM
New Member
 
Join Date: Oct 2006
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
jackxwu
Default RE: More information on this error

i have the same problem. in my case, i was testing using the real paypal accounts, not sandbox. i was trying to send 2 cents over though.

Fatal error: Call to a member function on a non-object in /homepages/28/d173936077/htdocs/shop/includes/modules/payment/paypal_ipn.php on line 521
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 10-15-2006, 06:22 PM
New Member
 
Join Date: Oct 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
stevew
Default RE: More information on this error

Jack has found a work around to this problem... I will let him tell you about it. I implemented the changes and it is now working on my store!

Thanks a load Jack!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 10-19-2006, 04:02 AM
New Member
 
Join Date: Oct 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
stevew
Default RE: More information on this error

Well Jack has not posted again so I will show you what he sent me and what we did to resolve the problem.. Mine is working fine now...

Quote

OK. here is what i did to fix this:

1. replace paypal_ipn.php with the file in
osCommerce PayPal IPN Module v1.3 For 2.2MS2
http://www.oscommerce.com/community/con ... rch,paypal
this removes bugfix 157 but keeps bug fix 47, which i think is a good thing.

2. you will hit the Cannot redeclare class order_total problem, which was there when rc2 was released. the fix is in this thread:
http://oscdox.com/PNphpBB2-viewtopic-t- ... aypal.html

i have verified after this fix, my paypal and order details works fine. some people had problems with other payment methods after applying #2. for those i have no idea what to do.

jack.

/quote
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 10-24-2006, 03:47 PM
Member
 
Join Date: Jan 2005
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Lobotaman
Default

SteveW,

I'm finally at a point where I can move ahead with your suggestions below.

I just went to get started and noticed there are some things missing. I hope you will take a moment and help out...

1. Which paypal_ipn.php file did you replace? (ie where is it located, there are two)

2. Both of the links in your message are trimmed so that I can't get them. The first one I was able to figure out, but the second one, I have no idea.

Thanks,

Lobo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 10-25-2006, 10:26 AM
New Member
 
Join Date: Sep 2006
Posts: 21
Thanks: 3
Thanked 12 Times in 5 Posts
Rep Power: 0
brendanl79
Default

I have the older thread up, let me try posting the links...

1) http://www.oscommerce.com/community/.../search,paypal
2) http://oscdox.com/PNphpBB2-viewtopic...ht-paypal.html

And looking at #157 in the bugtracker (the one he referenced) looks like the file to replace is \includes\modules\payment\paypal_ipn.php
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Gift Voucher error returning from PayPal kenlyle osCMax v2 Features Discussion 1 11-10-2005 06:47 AM
Paypal/Protx not returning item description Duke916 osCMax v2 Features Discussion 0 08-19-2005 03:43 AM
Admin losing session on form submit, returning to login batyushki osCMax v1.7 Discussion 4 10-27-2004 02:22 PM
Not being recognised a 'returning customer' SeanJ osCommerce 2.2 Installation Help 0 05-23-2004 06:53 AM
paypal and paypal IPN, whats the diff? lhotch osCommerce 2.2 Installation Help 1 09-06-2003 06:34 PM


All times are GMT -8. The time now is 09:28 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax