0

我刚刚开始按照文档构建一个 webhook。我创建了一个示例 Web api 应用程序并使用可从 Internet 访问的有效 url 发布到 IIS。

我在 authorize.net 沙盒帐户上创建了一个 webhook 并设置了 url。我可以从邮递员内部调用 POST api 方法。但是当我尝试 ping webhook 时,我收到如下错误:

https://apitest.authorize.net/rest/v1/webhooks/70884522-6fe8-4e72-9c7e-15bf2b30f778/pings

  {
    "status": 500,
    "reason": "PING_FAILED",
    "message": "The ping operation failed with the status code 403",
    "correlationId": "5d136ce8-406f-442e-9118-fdde36946d87",
    "details": [
    {
    "message": "Error occured in connecting to the endpoint:http://staging4.dancecompgenie.com/api/Values/Post "
    }
    ]
    }

这是我服务器上的网址。

http://staging4.dancecompgenie.com/api/Values/Post

我能够在邮递员中成功调用此 url 并获得结果。

如果您能帮助我解决问题,我将不胜感激。

4

0 回答 0