osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Features Discussion > Payment Modules > Paypal

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 06-19-2007, 07:30 AM
Member
 
Join Date: Apr 2007
Posts: 65
Thanks: 18
Thanked 1 Time in 1 Post
Rep Power: 2
justedee is on a distinguished road
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?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #2  
Old 06-19-2007, 07:34 AM
Member
 
Join Date: Apr 2007
Posts: 65
Thanks: 18
Thanked 1 Time in 1 Post
Rep Power: 2
justedee is on a distinguished road
Default Re: PayPal Errors

OH and I get an email that reads: PayPal IPN Invalid Process
However the order is processed.
Thank you,
~eDee
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 06-21-2007, 07:33 PM
Member
 
Join Date: Apr 2007
Posts: 65
Thanks: 18
Thanked 1 Time in 1 Post
Rep Power: 2
justedee is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 06-22-2007, 11:54 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,436
Thanks: 73
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 06-22-2007, 01:19 PM
Member
 
Join Date: Apr 2007
Posts: 65
Thanks: 18
Thanked 1 Time in 1 Post
Rep Power: 2
justedee is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 06-22-2007, 07:48 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,436
Thanks: 73
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 07-08-2007, 09:48 AM
Member
 
Join Date: Apr 2007
Posts: 65
Thanks: 18
Thanked 1 Time in 1 Post
Rep Power: 2
justedee is on a distinguished road
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 10:42 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 07-08-2007, 11:40 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,436
Thanks: 73
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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

Quote:
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:

Quote:
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 Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 07-11-2007, 01:01 PM
Member
 
Join Date: Apr 2007
Posts: 65
Thanks: 18
Thanked 1 Time in 1 Post
Rep Power: 2
justedee is on a distinguished road
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 01:05 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 07-16-2007, 03:31 AM
pigdestroyer's Avatar
New Member
 
Join Date: Jan 2004
Location: London
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
pigdestroyer
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

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
PayPal IPN in RC3 - values not being passed to PayPal? SavageSinister osCMax v2 Installation issues 3 02-12-2007 02:57 PM
errors i have. inversechi osCMax v2 Customization/Mods 1 05-07-2006 11:51 AM
errors litotes osCommerce 2.2 Modification Help 1 11-07-2003 08:25 PM
Errors when clicking on Paypal IPN | Transactions swalker2000 osCommerce 2.2 Installation Help 1 09-18-2003 05:29 PM
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 10:26 PM.


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