This is my first time with PayPal and I'm having some trouble with getting IPN to work. There are a number of problems, but I'll address them one at a time. I'm unsure whether developing in MVC has any relevance to these problems.
My button HTML looks like this:
Code:form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick" />
<input type="hidden" name="hosted_button_id" value="XZFK893VLNA9Y" />
<input type="hidden" name="custom" value="<%= Html.Encode(Page.User.Identity.Name) %>Level1" />
<input type="hidden" name="return" value="http://localhost:51346/Thanks/" />
<input type="hidden" name="notify_url" value="http://localhost:51346/Confirmation/" />
<input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" />
<img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
</form>
Problem #1:
When a user is redirected back to my site to the thanks page, my understanding is that this thanks page is simple a static page with no processing logic whatsoever. Then in the background, a post is sent to the "notify_url" - which does the processing. This is what I gained from reading
this. Does this sound right?
My problem is that the page specified in the "return" hidden field is displayed, and then no post is sent to my "notify_url" page.