Page 1 of 2 12 LastLast
Results 1 to 10 of 13

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 ...

      
  1. #1
    Member
    Join Date
    Jan 2005
    Posts
    49
    Rep Power
    0


    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

  2. #2
    New Member
    Join Date
    Oct 2006
    Posts
    7
    Rep Power
    0


    Default RE: Paypal not returning.

    I am also having this problem...

  3. #3
    Member
    Join Date
    Jan 2005
    Posts
    49
    Rep Power
    0


    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

  4. #4
    Member
    Join Date
    Jan 2005
    Posts
    49
    Rep Power
    0


    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

  5. #5
    New Member
    Join Date
    Oct 2006
    Posts
    7
    Rep Power
    0


    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?

  6. #6
    New Member
    Join Date
    Oct 2006
    Posts
    6
    Rep Power
    0


    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

  7. #7
    New Member
    Join Date
    Oct 2006
    Posts
    7
    Rep Power
    0


    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!

  8. #8
    New Member
    Join Date
    Oct 2006
    Posts
    7
    Rep Power
    0


    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

  9. #9
    Member
    Join Date
    Jan 2005
    Posts
    49
    Rep Power
    0


    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

  10. #10
    New Member
    Join Date
    Sep 2006
    Posts
    28
    Rep Power
    0


    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

Page 1 of 2 12 LastLast

Similar Threads

  1. Gift Voucher error returning from PayPal
    By kenlyle in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 11-10-2005, 07:47 AM
  2. Paypal/Protx not returning item description
    By Duke916 in forum osCMax v2 Features Discussion
    Replies: 0
    Last Post: 08-19-2005, 04:43 AM
  3. Admin losing session on form submit, returning to login
    By batyushki in forum osCmax v1.7 Discussion
    Replies: 4
    Last Post: 10-27-2004, 03:22 PM
  4. Not being recognised a 'returning customer'
    By SeanJ in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 05-23-2004, 07:53 AM
  5. paypal and paypal IPN, whats the diff?
    By lhotch in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 09-06-2003, 07:34 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
  •