2014-01-30 41 views
2

我想在我的网站上braintree webhook通知。为此我已经尝试了很多在我的沙盒帐户中设置webhook但我无法设置它显示错误“目标无法验证”但未成功。请提出什么是错的。我是否需要将任何特定字符串传递给“bt_challenge”参数?我曾尝试用:Braintree Webhook目的地未验证

  1. domain/controller/Action
  2. domain/controller/Action?bt_challenge=
+0

嘿Kulbir,你还没有真正提供足够的信息,这里诊断问题。我建议你接触[Braintree的支持团队](https://support.braintreepayments.com/)。如果您愿意接受/接受您发布的其他问题的答案,这也会很好。 – agf

回答

1

我在布伦特里工作。如果您需要更多帮助,请拨打get in touch with our support team

看看.NET Webhook Notification Tutorial.NET Webhook Notification Docs

从网络挂接教程一个简单的例子,构建从其他教程中的示例:

using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Web; 
using System.Web.Mvc; 
using Braintree; 
using System.Diagnostics; 

namespace braintree_tutorial.Controllers 
{ 
    public class WebhooksController : Controller 
    { 
     public ActionResult Accept() 
     { 
      return Content(Constants.Gateway.WebhookNotification.Verify(Request.QueryString["bt_challenge"])); 
     } 
    } 
} 

而至于什么网址进入:

如果我们的网站是在http://www.example.com托管,我们将输入http://www.example.com/webhooks/accept作为Webhook目标网址。这与我们在第一步中设置的新路线相匹配。

因此domain/controller/action应该是正确的。

+0

我已经完成了你所说的但目的地没有验证 –

+0

@KulbirSingh请与Braintree支持团队取得联系;最好的方法是通过[email protected]给他们发送电子邮件。他们可以在我们的日志中查看您的信息并查看具体问题。 – agf

+0

非常感谢@agf –