VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Payment VM 1.1 => PayPal / PayPal Pro VM 1.1 => Topic started by: oodya on November 13, 2011, 13:34:51 PM

Title: PayPal IPN Transaction on your Site‏ error
Post by: oodya on November 13, 2011, 13:34:51 PM
Hi all,

I have finally managed to get my site to accept PayPal payments.  The only problem that I am having now is that when somebody purchases something from my website, I am getting a purchase order confirmation along with another e-mail, which is the following:

E-mail:

Subject: PayPal IPN Transaction on your Site‏

Hello,
An error occured while processing a paypal transaction.
----------------------------------
Response from www.sandbox.paypal.com: HTTP/1.0 302 Found
Location: https://www.sandbox.paypal.com
Server: BigIP
Connection: close
Content-Length: 0

Does anyone have any ideas?

Thanks in advance.
Title: Re: PayPal IPN Transaction on your Site‏ error
Post by: stinga on November 14, 2011, 13:53:43 PM
Is this meant to be a real transaction? If it is you should not be using the sandbox. In fact a good suggestion is to never use the sandbox!
The sandbox ip address are not valid payment ip's (at a guess) so VM will reject.
Title: Re: PayPal IPN Transaction on your Site‏ error
Post by: gabitu on November 29, 2011, 21:29:35 PM
Hi,

I have exactly the same issue, the PayPal transaction is confirmed, the order status is changed to confirmed, the money arrive in my PayPal business account (Website Payments Standard), all good, except this email message:


-----Original Message-----
From: My Store[mailto:store@mystore.com.au]
Sent: Wednesday, 30 November 2011 6:09 AM
To: store@mystore.com.au
Subject: PayPal IPN Transaction on your Site

Hello,
                An error occured while processing a paypal transaction.
                ----------------------------------
                    Response from www.sandbox.paypal.com: HTTP/1.0 302 Found
Location: https://www.sandbox.paypal.com
Server: BigIP
Connection: close
Content-Length: 0

I don't understand, I'm using only the paypal API as payment method and the Sandbox Mode is set to No.
Also I configured Instant Payment Notification (IPN) settings in Paypal, seting up "Notification URL": http://www.mystore.com.au/administrator/components/com_virtuemart/notify.php

Thanks in advance.
Title: Re: PayPal IPN Transaction on your Site‏ error
Post by: stinga on December 01, 2011, 16:01:28 PM
Looks like you are still sending the data to the sandbox, I would check that first, then move on.
You need to work out why you are getting that error message.
Title: Re: PayPal IPN Transaction on your Site‏ error
Post by: gabitu on December 05, 2011, 09:29:40 AM
Problem solved, the problem was with the site being offline during my pre-launch tests (I launch the site on 1st of December...). Makes sense now!   ;D

After launch, by making the site online (Global Configuration->Site->Site Offline->No), I don't get the error email message anymore and I can see the IPN in Paypal...

Cheers,
Gab
Title: Re: PayPal IPN Transaction on your Site‏ error
Post by: hexardan on December 07, 2011, 00:11:12 AM
Hi All,

I am having the exact same error report sent to me whenever any type of transaction is made in my paypal account, not just when an order is placed, through the website.
I suspect it could be the notify.php file, but can't seem to narrow it down to anything specific.
The site is live and all payments and orders go through without any issues other than this sandbox error report.

Any help is greatly appreciated.

Cheers,
Dan
Title: Re: PayPal IPN Transaction on your Site‏ error
Post by: gigsakos on December 28, 2011, 21:13:36 PM
Hello! i've got the following message too.. to my mailbox

"Hello,
               An error occured while processing a paypal transaction.
               ----------------------------------
                   Response from www.sandbox.paypal.com: HTTP/1.0 302 Found
Location: https://www.sandbox.paypal.com
Server: BigIP
Connection: close
Content-Length: 0"

after that i've got the money to my paypal account but always i get this message to my mail.. also customers complaint that they get error message during the payment... i've set the sandbox mode to "No"

why am i get this message always??
please help!!
Title: Re: PayPal IPN Transaction on your Site‏ error
Post by: stinga on December 29, 2011, 16:16:43 PM
Dunno, but somewhere you have the sandbox IP address in your system.
Title: Re: PayPal IPN Transaction on your Site‏ error
Post by: ayj984l3 on January 04, 2012, 17:33:11 PM
Hi Stinga,

I'm having the exact same problem, so it's a bigger issue than just one or two people.  You're right that the sandbox API is in my system, but I just scanned the site code completely and it's only in your product pages at:

/administrator/components/com_virtuemart/notify.php /administrator/components/com_virtuemart/classes/payment/paypal_api/CallerService.php
/administrator/components/com_virtuemart/html/checkout.thankyou.php

The site is live and the store is not offline.  Sandbox mode is set to "No." Presumably the sandbox link in those pages should only be used if sandbox mode is set to "Yes."  If it helps, I'm using PayPal (New API) rather than PayPal (Legacy).  I wish I was a good enough PHP programmer to help you with debugging, but it looks like we're all stuck and reliant on your help.
Title: Re: PayPal IPN Transaction on your Site‏ error
Post by: stinga on January 04, 2012, 17:38:35 PM
I would log on to PP and have a look at the PP IPN trx logs.
Try and match them up.

I would then have a look the web server logs for those IPN transactions and see where they are coming from.

It might be that PP have mucked up their DNS somehow.

I would then have a look at the code and try to determine what the real error is. That message is not very helpful really.
Title: Re: PayPal IPN Transaction on your Site‏ error
Post by: ayj984l3 on January 04, 2012, 18:10:10 PM
I appreciate your confidence in my technical abilities, Stinga...  There's a huge amount of info in the server log and it would be helpful if you could give me some hint on what I'm looking for.  It looks more like a description of the pages were loaded than what your script might have sent to PayPal.  I went through the steps to place an order, downloaded the server log from my hosting service, and extracted the lines from my session.  I've attached the file to this message.

By the way, when I click on "Confirm Order" the VirtueMart page refreshes with this error in red at the top:

Error: Error - Paypal did not complete the transaction. Please try again in a little while.
Error: Failure in Processing the Payment (ps_paypal_api)

[attachment cleanup by admin]
Title: Re: PayPal IPN Transaction on your Site‏ error
Post by: ayj984l3 on January 04, 2012, 18:30:12 PM
UPDATE: I tried to "Confirm Order" again and this time it appeared to be successful.  However, if I look at my order history it says I don't have any.  I'm attaching the new lines in the server log.  I've checked the PayPal account the money was to have come from, and no transaction happened.

Honestly, I'm not sure where to look on the PayPal site for the info you were talking about.

[attachment cleanup by admin]
Title: Re: PayPal IPN Transaction on your Site‏ error
Post by: stinga on January 05, 2012, 00:59:24 AM
Does not tell you much...

66.211.170.66 - - [03/Jan/2012:20:55:30 +0000] "POST /administrator/components/com_virtuemart/notify.php HTTP/1.0" 200 - "-" "-"

But that is a PP IPN coming in

The IPN Trx history is under the 'history' tab, called IPN History :-)
Title: Re: PayPal IPN Transaction on your Site‏ error
Post by: ayj984l3 on January 05, 2012, 13:51:36 PM
Okay, thanks for the pointer, Stinga.  That could come in handy! 

It seems it almost has to be a PayPal issue somehow.  We finally got a successful test order through yesterday afternoon (even though we got the Sandbox failure e-mail).  When we went to PayPal's site to issue a refund of the test transaction we got another Sandbox failure e-mail--even though the transaction was conducted completely on PayPal's site!  I can't imagine how the VirtueMart configuration or code could have caused that.
Title: Re: PayPal IPN Transaction on your Site‏ error
Post by: stinga on January 05, 2012, 17:13:06 PM
OK, that answers one question.

VM/host/DNS is resolving the ip address to the sandbox address.
If you have a look in your web log you will a line similar to mine (I posted previously). This will give you the ip address that the the IPN came from. Post that address here and we can have a look at it.
This is not really going to be a J!/VM issue, but a DNS type issue. Maybe you host provider has made a c*%! up.

Doing some code investigation I am more convinced the issue is with DNS at your end.
Tell what IP address the IPN is coming from.
Title: Re: PayPal IPN Transaction on your Site‏ error
Post by: ayj984l3 on January 06, 2012, 14:11:53 PM
I believe you, but I don't understand... I thought DNS entries were essentially universal.  I just did another test transaction and here's the relevant line:

66.211.170.66 - - [06/Jan/2012:06:00:14 -0700] "POST /administrator/components/com_virtuemart/notify.php HTTP/1.0" 200 4661 "-" "-"

I'm attaching the whole relevant piece of the server log in case that's not the line you were looking for.  Would this be something I would address by telling my host (hostmonster) they need to somehow update their DNS??

--EDIT--
I have now processed the refund on the PayPal site and this is the server log entry from PayPal when that was done:

66.211.170.66 - - [06/Jan/2012:11:36:54 -0700] "POST /administrator/components/com_virtuemart/notify.php HTTP/1.0" 200 4550 "-" "-"

[attachment cleanup by admin]
Title: Re: PayPal IPN Transaction on your Site‏ error
Post by: sdkwebservices on January 19, 2012, 06:27:34 AM
I was trying to use the PayPal new api option and had the sandbox set to NO yet I was getting this error.

I ended up debugging the notify.php script and found that the PAYPAL_DEBUG variable was actually set to 1 so it was using the sandbox.paypal address. I tracked the PAYPAL_DEBUG variable down and it looks like it is actually set from the PayPal legacy option even if you are using the PayPal new api option. As soon as I set the test mode in the PayPal legacy option to NO this email message error stopped occurring. (Make sure you uncheck the set active checkbox as well when you update the PayPal legacy option otherwise it will become active)
Title: Re: PayPal IPN Transaction on your Site‏ error
Post by: nasowos on March 01, 2012, 14:22:30 PM
I am receiving a very similar E-Mail everytime a purchase is made via paypal:

Subject: PayPal IPN Transaction on your Site

Hello,
                An error occured while processing a paypal transaction.
                ----------------------------------
                    Response from www.sandbox.paypal.com: HTTP/1.0 302 Moved Temporarily
Location: https://www.sandbox.paypal.com
Server: BigIP
Content-Length: 0
X-Cache: MISS from hproxy.world4you.com
Connection: close

The payment works, it is just this annoying E-Mail. I have never ever made something with the paypal sandbox - I started testing live. Anybody has an idea where this comes from?