paypal notify_url not working

2,013 views
Skip to first unread message

giorgio

unread,
Aug 31, 2008, 5:33:31 PM8/31/08
to Active Merchant
Hi,

I am having trouble getting a callback to the "notify_url" that I
specify in the form that I post to PayPal.

The "return" and "return_cancel" work fine. But I never geta post to
the "notify_url"

Any advice appreciated.

Here is the relevant bit of the form I post:

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr"
method="post"><div style="margin:0;padding:0"><input
name="authenticity_token" type="hidden"
value="f808720322c1b84113937aac4e7134ecaea92770" /></div>
<input name="commit" type="submit" value="Proceed to Payments Page" /
>

<input id="business" name="business" type="hidden"
value="george_121...@gmail.com" />
<input id="bn" name="bn" type="hidden" value="ActiveMerchant" />
<input id="redirect_cmd" name="redirect_cmd" type="hidden"
value="_xclick" />
<input id="quantity" name="quantity" type="hidden" value="1" />
<input id="cmd" name="cmd" type="hidden" value="_ext-enter" />
<input id="address_override" name="address_override" type="hidden"
value="0" />
<input id="charset" name="charset" type="hidden" value="utf-8" />
<input id="no_note" name="no_note" type="hidden" value="1" />
<input id="no_shipping" name="no_shipping" type="hidden" value="1" />
<input id="item_name" name="item_name" type="hidden" value="Upgrade to
Standard account Payment" />
<input id="amount" name="amount" type="hidden" value="10.0" />
<input id="notify_url" name="notify_url" type="hidden" value="http://
myapp.heroku.com/account_upgrades/notify" />
<input id="return" name="return" type="hidden" value="http://
myapp.heroku.com/account_upgrades/paid/3" />

<input id="currency_code" name="currency_code" type="hidden"
value="USD" />
<input id="cancel_return" name="cancel_return" type="hidden"
value="http://myapp.heroku.com/account_upgrades/cancelled/3" />
<input id="custom" name="custom" type="hidden" value="3" />
<input id="item_number" name="item_number" type="hidden" value="3" />
</form>

Thanks
George

giorgio

unread,
Aug 31, 2008, 5:25:49 PM8/31/08
to Active Merchant
Hi,

I have been trying to get my app working with paypal sandbox.

Everything seems fine and the "return" and "cancel_return" parameters
are working fine.
However the "notify_url" never gets called.

Can anyone offer some advice on getting the IPN notification working?

Here is a segment of the form that I post to the sandbox

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr"
method="post"><div style="margin:0;padding:0"><input
name="authenticity_token" type="hidden"
value="f808720322c1b84113937aac4e7134ecaea92770" />
......
<input name="commit" type="submit" value="Proceed to Payments Page" /
>
......
<input id="amount" name="amount" type="hidden" value="10.0" />
<input id="notify_url" name="notify_url" type="hidden" value="http://
myapp.heroku.com/account_upgrades/notify" />
<input id="return" name="return" type="hidden" value="http://
myapp.heroku.com/account_upgrades/paid/3" />

<input id="currency_code" name="currency_code" type="hidden"
value="USD" />
<input id="cancel_return" name="cancel_return" type="hidden"
value="http://collections.heroku.com/account_upgrades/cancelled/3" />
..........
.........
</form>


Cheers
George

giorgio

unread,
Aug 31, 2008, 8:09:06 PM8/31/08
to Active Merchant
Sorry about the double post.. It takes forever for the post to appear.

I Have fixed the problem.
The Heroku app was not public and it seems that the return url etc
works but not the notify post unless the app is public.

G

Alexey

unread,
Sep 30, 2008, 10:51:03 PM9/30/08
to Active Merchant
Hi George,

I am having exactly the same issue with notify_url.
Can you please explain the solution? What do you mean by public app?

Cody Fauser

unread,
Oct 1, 2008, 6:34:16 AM10/1/08
to activem...@googlegroups.com
The notify_url receives an Instant Payment Notification (IPN) POST
from PayPal. It must be a publicly accessible URL because the request
is made asynchronously directly from PayPal and not from the clients
browser during their redirect back to your site like the return URL.

--
Cody Fauser
http://shopify.com - e-commerce done right
http://www.codyfauser.com - blog
http://peepcode.com/products/activemerchant-pdf - ActiveMerchant PeepCode
http://www.oreilly.com/catalog/rjsrails - RJS Templates for Rails

Reply all
Reply to author
Forward
0 new messages