YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

IPN Problems with ASP.NET MVC Options
ajbeaven
#1 Posted : Tuesday, March 16, 2010 2:06:46 AM
Rank: Starting Member

Groups: Registered

Joined: 3/16/2010
Posts: 1
Location: New Zealand
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.
Sponsor  
 
nds_webdesign
#2 Posted : Wednesday, March 17, 2010 5:00:29 AM
Rank: Junior Member

Groups: Registered

Joined: 10/15/2009
Posts: 159
Location: Omaha, NE USA
You can't post to localhost, put the site up on a server to test IPN:

This:

http://localhost:51346/Confirmation/

Will not work, because when PayPal posts the IPN it is basically posting it to itself through that port and it will not work. It has to be a real URL.

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.195 seconds.