1

我的 Paypal 沙盒帐户接收 webhook 通知的流程有什么问题?我们无法在我的 URL 上接收 webhook 事件。

使用“ Webhooks 模拟器”的 URL。请让我知道我应该怎么做才能在上述 URL 上接收 webhook 事件。

4

2 回答 2

0

这是我在文档中忽略的一件愚蠢的事情,只是在联系支持人员后才发现。

在您按照批准 url 并给予批准后,您是否使用 REST API执行付款?

https://developer.paypal.com/docs/api/payments/#payment_execute

只有在您执行付款后才会调用 Webhook。

令人困惑的部分是;当用户批准取消付款时,不会调用 webhook 。只有重定向回返回 url取消 url。因此,您要么需要监控重定向回您的站点并触发执行调用,要么在调用执行调用之前找到另一种方式(如轮询付款)以查看状态更改。

于 2018-06-06T04:32:34.547 回答
0

Webhooks simulator sends sample payloads for the events you configured. It does not send a notification on triggering of an actual event.

If you are getting notification via Webhooks Simulator, it means the URL configured by you is able to intercept POST requests.

Now for the "Paypal sandbox account unable to process to receive Webhook notifications" part, please check if the transaction is actually created at https://developer.paypal.com/developer/dashboard/sandbox/ . If the transaction you are looking for is not present there, there won't be any notification generated. In case transaction is present there and still you are not getting any notifications, please share debug id.

于 2016-02-09T19:51:19.093 回答