Paypal payment status IPN issues

ismaelpernas - August 8, 2007 - 11:45
Project:e-Commerce
Version:5.x-3.x-dev
Component:paypal
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi all

I have a problem with the paypal payment. Im testing this payment method with the Paypal sandbox and all works fine except one thing: all drupal transactions stay in "Pending" status when the payment is acepted.

My drupal version is 5.1 and ecommerce 3.x (im not sure what 3.x version). I was looking for solutions and i read a lot of post but i didnt can resolve this problem. I am desesperate.

I think that it can be a problem with the ipn request callback but im not sure. I dont know if all works fine in real Paypal platform. I want to test it before enter in real life.

This is my drupal paypal configuration:

PayPal Receiver Email: ismael_1186478636_biz@XXXXXX.es
PayPal processing URL: https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_xclick
PayPal IPN "request back" validation URL: http://MYDOMAIN/paypal/ipn
Debug Instant Payment Notification (IPN): active (i dont get any mail from anywhere)

And this is the configuration of the business account of paypal sandbox:

Instant Payment Notification (IPN): On
Instant Payment Notification (IPN) URL: http://MYDOMAIN/paypal/ipn

I have the same IPN URL in the paypal sandbox account and drupal configuration. This is correct?

Anybody can help me? I am very frustrated with this. I want to know an exactly configuration of drupal paypal and sandbox paypal that works fine.

Thanks all.

Best regards.

Ismael Pernas.

#1

ismaelpernas - August 8, 2007 - 11:56
Priority:critical» normal

I know someone can think that this is not critical. :P but I put priority critical because i need resolve this to open the virtual shop of the company. For sure i know there are a lot of another critical thinks. :)

Thanks all.

#2

thepanu - August 8, 2007 - 14:12

I am on the same boat here. Would love to see some pointers.

#3

gordon - August 9, 2007 - 03:21
Status:active» postponed (maintainer needs more info)

Can you check your web log and see if you have gotten the IPN request from PayPal.

If you have not received this then there is a problem with PayPal and not e-Commerce

#4

ismaelpernas - August 9, 2007 - 07:28

Thanks for reply and sorry for my ignorance but i cant find the web log file. The server is a Debian Etch machine. I am looking for the logs and find the apache2 logs at /var/logs/apache2/access.log and /var/logs/apache2/error.log but didnt say me anything about IPN.

Which logs files i must search?

The Log page of drupal say that its all ok. No errors.

#5

ismaelpernas - August 9, 2007 - 09:45

I didnt find any log file and I was testing some things.

I did one thing that can look like stupid thing but i want to tell you. I opened the paypal.module and delete all code in paypal_ipn() function and then i write this code at the function:

drupal_goto('http://www.google.com');

The transaction made exactly the same than before. Paypal transaction is "completed" and drupal transaction is "Pending" and i didnt get redirect to www.google.com. My conclusion is that Paypal is not calling the IPN URL of my website. This is true or i am wrong?

With this test i have another question. I see that paypal transaction finish in "completed" status. Then paypal transaction not need website confirmation?

Im so confusing now. I will be grateful for your support.

#6

ismaelpernas - August 9, 2007 - 12:05

Finally i find the solution for my problem.

The PayPal IPN "request back" validation URL in the drupal configuration must be https://www.sandbox.paypal.com/cgi-bin/webscr

And the most important thing is that the apache2 server was blocking all the request attemps of the paypal and then was impossible to confirm the transaction.

All is ok now :D

Thanks all.

#7

thepanu - August 9, 2007 - 14:18

I got this one:

IPN hit for txn: 1

#8

thepanu - August 9, 2007 - 17:37

Changing that request back url didn't help in my case.

But now I assume that I found correct access log, first I was just checking drupal logs. Anyway, following is the only entry that hasn't come from my own IP. Is this good or bad, ie. Paypal or ecommerce problem?

66.135.197.164 - - [09/Aug/2007:17:32:18 +0000] "POST /paypal/ipn HTTP/1.0" 200 0 "-" "-"

#9

gordon - October 18, 2007 - 06:41
Status:postponed (maintainer needs more info)» fixed

Fixed in v4

#10

Anonymous - November 1, 2007 - 09:42
Status:fixed» closed

#11

queenielow - November 19, 2008 - 10:34

Hi,

Sorry, i know this is pretty old thread.

But i had follow all the fix that being posted here. but i still didn't get it run to ipn, it there any possibility that it's not working on https link?
I'm pretty lost.. Just need some guideline.

Thanks alot
Queenie

#12

Dublin Drupaller - July 23, 2009 - 14:28
Title:Transaction status» Paypal payment status IPN issues
Status:closed» active

same problem here. anyone know if there is a patch available?

 
 

Drupal is a registered trademark of Dries Buytaert.