查看日志我看到我在IPNlistener中收到了正确的回复,但付费模拟器页面对它有不同的意见。
public ActionResult PpIpnListener()
{
Loggr.Events.Create().Text("Listener begin").Post();
var formVals = new Dictionary<string, string>();
formVals.Add("cmd", "_notify-validate");
string response = GetPayPalResponse(formVals, true);
if (response == "VERIFIED")
{
// I get into here, and do nothing. Is there something to do except internall processing? Do I need to notify paypal somehow?
}
}
答案 0 :(得分:0)
您有一个变量formVals,但实际上您没有从表单中获取这些值,而是自己设置它们:var formVals = new Dictionary<string, string>();
您必须根据您的请求创建包含表单值的字典,然后添加命令。