为什么PayPal Webhook的数据通知,event_type和resource.Status不匹配

发布于 2025-02-03 00:00:15 字数 410 浏览 3 评论 0原文

我简化了从贝宝回调中收到的数据结构,为什么event_type是付款。

{
  "id": "xxxx",
  "event_version": "1.0",
  "create_time": "2022-05-30T06:17:22.994Z",
  "resource_type": "capture",
  "resource_version": "2.0",
  "event_type": "PAYMENT.CAPTURE.COMPLETED",
  // ...
  "resource": {
    "id": "xxxx",
    "status": "PENDING",
    "status_details": {
      "reason": "PENDING_REVIEW"
    }
    // ...
  },

}

I simplified the data structure received from paypal callback, why event_type is PAYMENT.CAPTURE.COMPLETED but resource.status is PENDING

{
  "id": "xxxx",
  "event_version": "1.0",
  "create_time": "2022-05-30T06:17:22.994Z",
  "resource_type": "capture",
  "resource_version": "2.0",
  "event_type": "PAYMENT.CAPTURE.COMPLETED",
  // ...
  "resource": {
    "id": "xxxx",
    "status": "PENDING",
    "status_details": {
      "reason": "PENDING_REVIEW"
    }
    // ...
  },

}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

帅的被狗咬 2025-02-10 00:00:15

捕获的PayPal付款可以出于多种原因进行审查。如果Webhook的详细信息不足以适合您,请检查

Captured PayPal payments can be under review for many reasons. If the webhook's details aren't enough for you, examine the payment in www.paypal.com and/or have one of the account owners contact PayPal's support.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文