Paypal C# Return Url -


i have c# mvc (using umbraco) site need submit payment through paypal. have setup sandbox merchant , buyer account. able submit payment , working there. however, site needs know when payment has completed send email , database operations, , here i'm having problem. cannot paypal auto return site. need return url be:

 http://localhost:56733/payment-confirmation 

this not duplicate of question: setting paypal return url , making auto return?

i using c#, not php. also, trying run locally. solutions listed on above question not work. behavior , results same.

i screen shows following:

you completed payment. xxxx, completed payment. transaction id payment is: xxxxxxxxxxxxx.  we'll send confirmation email xx@xxxx.com. transaction appear on statement paypal.  go paypal account overview 

it not recommended handle post-payment processing on return url. auto-return enabled there no guarantee user make there, , if don't, code never run , you'll end tasks not getting completed expect.

even if you're using express checkout api's guaranteed end on own site, it's still not wise handle data updates , email stuff there because payment pending. wouldn't want deliver product or until pending payment cleared.

the way handle of correctly use instant payment notification (ipn). triggered regardless of whether or not user makes return url, , you'll multiple ipn's transactions status updates can handle automatically, in real-time well.

take @ documentation ipn, don't let freak out because there's lot of info there. it's nothing more post of data listener url specify. in script, you'll receive data form post. it's pretty simple thing setup, , can sorts of cool things it.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -