Reputation: 2731
I'm trying to use Paypal IPN on a website.
But it seems paypal doesn't talk to the IPN script. When checking with Wireshark, there is no communication with my website when the payment is sent.
Could it be because this communication is embedded inside an SSL communication and not in non-secure HTTP?
Could my server refuse to process the IPN request from Paypal?
I thought it would work out of the box, but no. It seems it doesn't reach my server, and Paypal doesn't return something like "your server refused to receive IPN infos". So Paypal is just not calling IPN script.
I'm 99% sure my request in correct, but here's the button I made:
<form action="<%=paypalurl%>" method="post" target="_blank">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="<%=appsettings.paypalemail%>">
<input type="hidden" name="item_name" value="<%=appsettings.paypalitem%>">
<input type="hidden" name="item_number" value="<%=appsettings.paypalid%>">
<input type="hidden" name="amount" value="<%=appsettings.paypalamount%>">
<input type="hidden" name="currency_code" value="<%=appsettings.paypalcurrency%>">
<input type="hidden" name="custom" value="<%=userid%>">
<input type="hidden" name="notify_url" value="http://www.mysite.com/ipnscript.aspx">
<input type="hidden" name="return" value="http://www.mysite.com/ppreturnurl.aspx">
<input type="hidden" name="cancel_return" value="http://www.mysite.com/ppcancelurl.aspx">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
Upvotes: 3
Views: 2800
Reputation: 91
As of 2013-06-20, if you have a Business account, to enable IPN messages:
(Log into PayPal) > Profile > My Selling Tools > Getting paid and managing my risk / Instant payment notifications / Update > Choose IPN Settings > (o) Receive IPN messages (Enabled) > Save
*Note: you can leave "Notification URL" blank if you provide a "notify_url" field in your payment form / button code.
Upvotes: 2
Reputation: 3479
Did you make sure that IPN is enabled?
Account -> My Profile -> Instant Payment Notification Preferences
Secondly I would check the IPN History
Account -> History -> IPN History
This will allow you to see the status and re-send it if need be.
Upvotes: 4