PayPal webhooks 状态从 'Pending' 变为成功需要发生什么?

What needs to happen for PayPal webhooks status to change from 'Pending' to success?

我已经在 PayPal 沙盒帐户中设置了 webhook,并在我的后端接收它们并验证它们,然后返回 {verification_status: 'SUCCESS'}。但是,PayPal 开发人员仪表板将 webhook 显示为 'Pending',这意味着它们保留 resending/retrying.

需要做什么才能让我不再收到重复的 webhook?

为了成功传送 webhook,接收 webhook 的服务器需要响应 HTTP 状态 2xx -- 而不是任何其他状态,例如 4xx 或 5xx 或无响应。

验证 webhook 是为了您自己的信息,以确认它是由 PayPal 而不是其他 (malicious/spoof) 参与者发送的。您还可以通过检查加密签名而不是将其发回 PayPal API.

来验证