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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
| Sponsored Links | ||
| ||
| |
|
#2
| |||
| |||
| I am also having this problem... |
|
#3
| |||
| |||
| 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
Regards, Lobo |
|
#4
| |||
| |||
| 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 |
|
#5
| |||
| |||
| 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 |
|
#6
| |||
| |||
| 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 |
|
#7
| |||
| |||
| 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! |
|
#8
| |||
| |||
| 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 |
|
#9
| |||
| |||
| 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 |
|
#10
| |||
| |||
| 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 |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| 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 |