Hi,

I have the PayPal Subscriptions module almost working but have one pretty niggly issue:

- The IPN return page that PayPal redirects to - http://%mysite%/paypal/ipn is blank/empty.

I'd expect this page to have something on it thanking the customer for their payment but nothing appears.
The rest of the module is working beautifully (thanks) : I do get notified of the payment and it does have a status of 'completed'. So the correct code is actually executed.

I am running in the PayPal Sandbox, but can't see why this would make a difference. I have the latest versions of this module and the PayPal Framework module that it relies on.

I feel oh-so-close to getting this all sorted. Looking at the code I can't make out what should happen after the '_paypal_ipn_receive' function completes - it doesn't generate any HTML output so not sure where this redirects afterwards (or if at all).

Any help or pointers appreciated.

Thanks.

Comments

mrchristian’s picture

Hi

Ive got the same problem on a site we have under developemnt. http://metamute.org/ im looking into this issue over the next couple of days so if i get a solution ill let you know.

Ive now moved out of PayPay Sandbox and onto a live account

Ciao

MC
--
http://openmute.org FLOSS ASP

thetrickyt’s picture

MC,

Good to hear I'm not alone on this. Please let me know how you get on. Nice site by the way.

Cheers

kbahey’s picture

The IPN page is meant to be accessed by Paypal only.

You set where the IPN page is in your Paypal profile on their web site.

When Paypal completes a payment or cancellation, it will access that page and send certain data that your payment program understands (Paypal subscriptions in this case). The program then updates the database or does anything it is designed to do.

It is not meant to be accessed by humans from browsers.

You should redirect the users to page saying thank you for your payments (a simple node), their purchase history, or something else. Not the IPN page.

Could that be the problem you are facing?
--
Drupal development and customization: 2bits.com
Personal: Baheyeldin.com

--
Drupal performance tuning and optimization, hosting, development, and consulting: 2bits.com, Inc. and Twitter at: @2bits
Personal blog: Ba

thetrickyt’s picture

You got it right away. I had made the silly mistake of confusing the "Return URL" with the "IPN URL" and had set them both the same. Doh.

Just setting the return URL to something sensible has sorted it.

Much appreciated.

kae’s picture

I can't figure out where to specify the return url

here are instructions from paypal for how you specify a return url

How do I specify a return URL on my website?

When creating your PayPal payment buttons, you may specify a Return URL. This is the destination to which you would like PayPal to send your customers when their payment has been successfully completed. Once your customer clicks 'Continue' they will be taken to the specified URL (same as a web link address). If you do not enter a Successful Payment URL, your customers will be sent to a PayPal jump page after completing payment. You can also specify a Cancel URL. This is the destination to which you would like PayPal to send your customers if they cancel payment at any point in the payment flow. To edit any of this information, retrieve the HTML that you cut and pasted onto your website. In the HTML code, find the variable you wish to edit. The variables have the following names: Successful Payment URL = return Cancelled Payment URL = cancel_return.

however, I don't see any return url option when I make my paypal button. surfing produced a web page that said turn on autoreturn (under other tools under merchant tools) and customer will be returned to your business url. I can't find where to turn on autoreturn either (didn't see other tools under merchant tools). I know paypal moves things and instructions get outdated

your help appreciated.

thank you,
ae2005

stretchwickster’s picture

ae2005,

Did you manage to enable the return url in the end? I've managed to get it working with a sandbox paypal business account. Let me know if you could do with some hints.

kae’s picture

thetrickyt and mrchristian,
how's it going? would you like to point us to your sites where this is running?
I'm tracking success and problems with this module at node 44295