我想在我的網站上braintree webhook通知。爲此我已經嘗試了很多在我的沙盒帳戶中設置webhook但我無法設置它顯示錯誤「目標無法驗證」但未成功。請提出什麼是錯的。我是否需要將任何特定字符串傳遞給「bt_challenge」參數?我曾嘗試用:Braintree Webhook目的地未驗證
domain/controller/Action
domain/controller/Action?bt_challenge=
我想在我的網站上braintree webhook通知。爲此我已經嘗試了很多在我的沙盒帳戶中設置webhook但我無法設置它顯示錯誤「目標無法驗證」但未成功。請提出什麼是錯的。我是否需要將任何特定字符串傳遞給「bt_challenge」參數?我曾嘗試用:Braintree Webhook目的地未驗證
domain/controller/Action
domain/controller/Action?bt_challenge=
我在布倫特裏工作。如果您需要更多幫助,請撥打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
應該是正確的。
我已經完成了你所說的但目的地沒有驗證 –
@KulbirSingh請與Braintree支持團隊取得聯繫;最好的方法是通過[email protected]給他們發送電子郵件。他們可以在我們的日誌中查看您的信息並查看具體問題。 – agf
非常感謝@agf –
配置braintree與開發一起工作的最簡單方法(即本地主機)位於此鏈接上。我也掙扎着這一點,但找到了解決辦法
嘿Kulbir,你還沒有真正提供足夠的信息,這裏診斷問題。我建議你接觸[Braintree的支持團隊](https://support.braintreepayments.com/)。如果您願意接受/接受您發佈的其他問題的答案,這也會很好。 – agf