There is quite a few code samples on PayPal GitHub showing how to implement IPN listener in various languages (php, VB, ...). However, there is none for the ASP.NET MVC. Has anybody successfully implemented it? Or is there, similarly to the other code samples, a preferred/oficial way of implementing it?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
A neat video on a simple MVC site structure that includes PayPal IPN:
http://www.asp.net/mvc/videos/mvc-1/aspnet-mvc-storefront/aspnet-mvc-storefront-part-22-restructuring-rerouting-and-paypal
Direct link to his IPN controller
https://mvcsamples.svn.codeplex.com/svn/trunk/Kona.Web/Controllers/PayPalController.cs
MVC/C# Example:
http://www.markstraley.com/Code/PayPalIPN
Thanks @Earlee!