PayPal IPN 模拟器 - 请求已验证,但我得到"We're sorry, we could not send an IPN."



查看日志,我发现我在IPN监听器中收到了正确的响应,但是pay-pal模拟器页面对此有不同的看法。

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?
       }
 }

你有一个变量 formVals,但你实际上并没有从表单中获取这些值,而是自己设置它们: var formVals = new Dictionary<string, string>();

您必须根据请求使用表单值创建字典,并在之后添加命令。

最新更新