在C#中宝IPN监听器问题 [英] Paypal IPN Listener Issue in C#

查看:177
本文介绍了在C#中宝IPN监听器问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在使用的认购测试PayPal和沙盒环境的按钮,使用ASP.net MVC3作为开发环境。
支付完成后,我在IPN历史上有反应是显示为200和URL检查是
我所期待的。

I am using subscribe now button of paypal and sandbox environment for testing and using ASP.net MVC3 as development environment. After payment is done I checked in IPN history there response is showing as 200 and url is what i expected.

我在首页创建监听器控制器如下:

I created listener in Home controller as follows.

[HttpPost] 
 public ActionResult paypalCallback()
    {

     //Doing some hardcoded DB insertions.
     DodbInsertion("Received");
     //Writing log file
     WriteLog("Ipn Log");
     Dictionary<string, string> result = new Dictionary<string, string>();
     result.Add("Status", "Success");
     return Json(result, JsonRequestBehavior.AllowGet);



}

}

在数据库中没有什么是写作并没有任何反应的博客。
然后我让听者功能的GET方法,并从浏览器调用然后登录和DB插入发生.IE分贝的插入和日志功能将正常工作。但它不能正常工作时,它是由贝宝IPN监听器名为

In database nothing is writing and nothing happens in blog. Then I make listener function a GET method and called from browser then log and DB insertion is happening .Ie db insertion and log function will work correctly. But which was not working when it is called from Paypal IPN Listener.

然后我说Response.StatusCode = 500;到侦听器函数。于是在IPN历史它显示为500的地位;
我的申请发表在godady。我不知道有没有许可,或什么有什么关系。
请帮我在此先感谢。
Syam.S

Then I added Response.StatusCode = 500; to listener function .Then in ipn history it is showing status as 500; My application is published in godady. I don't know is there any relation with permission or something there. Please help me Thanks in advance. Syam.S

推荐答案

我觉得问题可能与您的托管环境,请检查下面的
http://helpnshareidea.blogspot.in/2013/11/mvc3 -applications功能于Windows的shared.html

I feel issue may be with your hosting environment Please check following http://helpnshareidea.blogspot.in/2013/11/mvc3-applications-in-windows-shared.html

这篇关于在C#中宝IPN监听器问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆