【问题标题】:Braintree Webhook Destination is not verifiedBraintree Webhook 目标未验证
【发布时间】:2014-01-30 07:58:39
【问题描述】:

我想在我的网站上收到 Braintree Webhook 通知。为此,我尝试了很多在我的沙盒帐户中设置 webhook 但我无法设置,因为它显示错误“无法验证目标”但没有成功。请提出什么问题。我是否必须将任何特定字符串传递给“bt_challenge”参数?我试过了:

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

【问题讨论】:

  • 嗨,Kulbir,您在这里没有真正提供足够的信息来诊断问题。我建议您联系Braintree's support team。如果您支持/接受您发布的其他问题的答案,那也很好。

标签: .net gateway braintree


【解决方案1】:

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

看看.NET Webhook Notification Tutorial和.NET Webhook Notification Docs。

webhook 教程中的一个简短示例,以其他教程中的示例为基础:

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 目标 URL。这与我们在第一步中设置的新路线相匹配。

所以domain/controller/action 应该是正确的。

【讨论】:

  • @KulbirSingh 请联系 Braintree 支持团队;最好的方法是通过 support@braintreepayments.com 向他们发送电子邮件。他们可以在我们的日志中查找您的信息并查看具体问题。
  • 抱歉,我没有提供您的答案,因为您的代码无助于解决我的问题,感谢您联系支持团队的建议。我正在回答建议:)
【解决方案2】:

配置 Braintree 以用于开发(即 localhost)的最简单方法是在此链接上。我也为此苦苦挣扎,但找到了解决方案

How to configure braintree webhooks for localhost

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-11-18
    • 2018-07-20
    • 2021-01-14
    • 1970-01-01
    • 2018-05-27
    相关资源
    最近更新 更多