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

PayPal Errors

This is a discussion on PayPal Errors within the Paypal forums, part of the Payment Modules category; When an order is placed, the customer clicks " Complete your order information. " And they recieve this error: Fatal ...

      
  1. #1
    Member
    Join Date
    Apr 2007
    Posts
    65
    Rep Power
    5


    Default PayPal Errors

    When an order is placed, the customer clicks "Complete your order information."

    And they recieve this error: Fatal error: Call to a member function on a non-object in /home/content/d/a/z/dazedangels/html/oscMAX2/catalog/includes/modules/payment/paypal_ipn.php on line 521


    Now I know I need to do something to line 521 OR I need to change an option.
    I'm betting I only need to change an option.

    Anyone want to take a guess?


  2. #2
    Member
    Join Date
    Apr 2007
    Posts
    65
    Rep Power
    5


    Default Re: PayPal Errors

    OH and I get an email that reads: PayPal IPN Invalid Process
    However the order is processed.
    Thank you,
    ~eDee

  3. #3
    Member
    Join Date
    Apr 2007
    Posts
    65
    Rep Power
    5


    Question paypal errors

    When an order is placed, the customer clicks "Complete your order information."

    And they recieve this error: Fatal error: Call to a member function on a non-object in /home/content/d/a/z/dazedangels/html/oscMAX2/catalog/includes/modules/payment/paypal_ipn.php on line 521


    Now I know I need to do something to line 521 OR I need to change an option.
    I'm betting I only need to change an option.

    Anyone want to take a guess?



    OH and I get an email that reads: PayPal IPN Invalid Process
    However the order is processed.
    Thank you,
    ~eDee

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,477
    Rep Power
    567


    Default Re: PayPal Errors

    Do not create multiple posts on the same topic. Merged.

    Also, you keep posting to the wrong forum. This is a paypal module issue, so it belongs in the paypal forum, not the general osCMax forum. Moved.

    Next, are you in live or testing mode?

    If testing in the sandbox, try live...
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    Member
    Join Date
    Apr 2007
    Posts
    65
    Rep Power
    5


    Default Re: PayPal Errors

    I am in live mode. I made purchase on my CC. Sandbox is impossible and I only want to set this up once.
    I have not set up where to have the page return in paypal, because I don’t know where it should return to. I was thinking there would be a page the confirmed the purchase on my side, but I don’t know where that would be.
    I know it needs to return form paypal somewhere on my site to take it out of inventory, but without a manual I can’t look that up.
    ~eDee

  6. #6
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,477
    Rep Power
    567


    Default Re: PayPal Errors

    No you do not need to set the return url. It is automatically sent with the paypal transaction from your store.

    There are instructions on how to set up paypal IPN here:
    osCommerce Documentation by OSCdox :: osCommerce and osCMax installation and users manual, discussion forums (phpWiki)

    osCommerce Documentation by OSCdox :: osCommerce and osCMax installation and users manual, discussion forums (phpWiki)

    Read over both and make sure you have it set up per the instructions. Once you have verified this, let us know if you are still getting the error.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  7. #7
    Member
    Join Date
    Apr 2007
    Posts
    65
    Rep Power
    5


    Question Re: PayPal Errors

    Sorry it has taken so long to get back to this, had a baby.

    I'm still lost. I printed the information and read it over, but still don't see my problem.

    I have gone into catalog/includes/modules/payment/paypal_ipn.php on line 521
    And this is what I found.

    518: $products_ordered_attributes . "\n";
    519: }
    520: // Added Bugfix 157
    521: $order_total_modules->apply_credit();
    522:
    523: // lets start with the email confirmation
    524: $email_order = STORE_NAME . "\n" .
    525 EMAIL_SEPARATOR . "\n" .
    526 EMAIL_TEXT_ORDER_NUMBER . ' ' . $order_id . "\n" .
    527 EMAIL_TEXT_INVOICE_URL . ' ' .
    528: tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' .
    529: $order_id, 'SSL', false) . "\n" .

    I have no idea where to start.
    I think it would help if I know what was suppose to happen next. When they click the "complete your order confirmation" what is suppose to happen? Should they be returned to my site or another part of the paypal site?

    Also, the directions look like they were written for 1.7, I'm using MAX 2.0.
    I think it's important to tell you I'm not using a SSL at this moment. Does that have anything to do with it?
    I am using my paypal account and not the sandbox. Didn't want to set it up twice. I started with a sandbox and gave up on it. I am assuming that won't be a problem if I just use my original paypal account. Account Type: Premier. I don't want to change that until I start making money.
    What should these be set too?:
    Set Preparing Order Status

    Preparing [PayPal IPN]

    Set PayPal Acknowledged Order Status
    Preparing [PayPal IPN]

    I can't think of anything else to tell you.

    This is the LAST thing I have to do before going live.
    Can anyone help me?
    ~eDee
    Last edited by justedee; 07-08-2007 at 11:42 AM.

  8. #8
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,477
    Rep Power
    567


    Default Re: PayPal Errors

    I believe this was resolved in the bugtracker. Your exact error is discussed there and resolved. First you need to make sure the following is set:

    Per this post Other Paypal Issues

    in /catalog/checkout_process.php uncomment line 53 (remove the two // ):
    Code:
    // $payment_modules->before_process();
    and comment out line 69 (add two // to the beginning of the line):
    Code:
    $payment_modules->before_process();
    That should fix it.
    Next, follow the advice in the bugtracker , comment #289 by ktough:

    So far, so good. Now, open \catalog\includes\modules\payment\paypal_ipn.php and find these lines (near line 424):

    include(DIR_WS_CLASSES . 'order_total.php');
    $order_total_modules = new order_total;

    $order_totals = $order_total_modules->process();

    Comment them out. (They were already called at the beginning of checkout_process.php)

    That should solve your problem. From what I can tell, that may even fix the problem of using PayPal with other payment modules.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  9. #9
    Member
    Join Date
    Apr 2007
    Posts
    65
    Rep Power
    5


    Default Re: PayPal Errors

    UGH! It didn't work and I had such high hopes. However, the problem didn't change - which is good news. I'd hate to trade one for another.

    First I went to catalog\checkout_process.php
    Is this correct (lines 50 - 70)

    // MOVED BELOW Authorizenet ADC
    // load the before_process function from the payment modules
    // $payment_modules->before_process();

    require(DIR_WS_CLASSES . 'order_total.php');
    $order_total_modules = new order_total;

    $order_totals = $order_total_modules->process();

    // BOF: MOD - Authorizenet ADC Direct Connection
    // Make sure the /catalog/includes/class/order.php is included
    // and $order object is created before this!!!
    if(MODULE_PAYMENT_AUTHORIZENET_STATUS == "True") {
    include(DIR_WS_MODULES . 'authorizenet_direct.php');
    }
    // EOF: MOD - Authorizenet ADC Direct Connection

    // load the before_process function from the payment modules
    // $payment_modules->before_process();

    $sql_data_array = array('customers_id' => $customer_id,
    'customers_name' => $order->customer['firstname'] . ' ' . $order->customer['lastname'],

    Here are lines 520-527
    What is wrong with line 521 (well 520) that is causing this error?


    I didn't even have a paypal_ipn.php in payments on my website. So I made the changes and uploaded the file to modules\payments\
    Now I have the file there.

    Lines 424 - 432
    global $customer_id, $order, $sendto, $billto, $payment, $languages_id, $currencies, $cart, $cart_PayPal_IPN_ID;
    global $$payment;

    // include(DIR_WS_CLASSES . 'order_total.php');
    // $order_total_modules = new order_total;

    // $order_totals = $order_total_modules->process();

    $order_id = substr($cart_PayPal_IPN_ID, strpos($cart_PayPal_IPN_ID, '-')+1);


    However, those changes had already been made and this time the file was on my server, but I uploaded it anyway.


    In Paypal, I've turned Instant Payment Notification (IPN) On Instant Payment Notification (IPN) URL:

    on and off and still it doesn't work.
    Does anyone know which it should be set at?

    I did get an email telling me of payment and the customer (also me but a different email address) received an email telling them the payment went through and it is in orders. But I still get the error email and the customer still gets the 521 error.

    Any other ideas?
    ~eDee
    Last edited by justedee; 07-11-2007 at 02:05 PM.

  10. #10
    New Member pigdestroyer's Avatar
    Join Date
    Jan 2004
    Location
    London
    Posts
    13
    Rep Power
    0


    Default Re: PayPal Errors

    I am also getting this message and I can't really see a way around it. I've been using PayPal IPN for some time and I've just noticed that if you want your stock to be subtracted the customer needs to click back through to your site. I assumed, ok that was my bad, that this was taken care of when PayPal sent the IPN confirmation back to the server, but alas not. So regardless of if IPN updates the status of the order, we need to encourage the customer to click back through after paying for their items (with no error) to make sure the stock levels don't go crazy

    I will be investigating this problem today to see if I can find the solution. As its not immediately apparent.

    I've also noticed that the PayPal stock update doesn't support per-attribute stock levels.

Page 1 of 2 12 LastLast

Similar Threads

  1. PayPal IPN in RC3 - values not being passed to PayPal?
    By SavageSinister in forum osCmax v2 Installation issues
    Replies: 3
    Last Post: 02-12-2007, 03:57 PM
  2. errors i have.
    By inversechi in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 05-07-2006, 12:51 PM
  3. errors
    By litotes in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 11-07-2003, 09:25 PM
  4. Errors when clicking on Paypal IPN | Transactions
    By swalker2000 in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 09-18-2003, 06:29 PM
  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
  •