Paypal Ipn integration with asp.net MVC

前端 未结 2 1716
执笔经年
执笔经年 2021-01-16 00:28

HomeControler/Index.cshtml page is as below

2条回答
  •  臣服心动
    2021-01-16 01:20

    If I remember correctly, the IPN is an asynchronous call that can come at anytime after the transaction (its generally "instant", sometimes not so much). But this comes from PayPal, who cannot access http://localhost. To test IPN you need to deploy to an actual internet site that anyone can access. It's been a few years since I worked with IPN - but that was my general experience. Setup some logging in your application, publish, then do your test transactions.

    EDIT:

    Also - I think you can give it your WAN IP address (not local), open up the ports in your router, and instead use that IP address (note you may need to enable remote connections with IIS Express - see IIS Express enable external request):

    
    

提交回复
热议问题