【问题标题】:Paypal-US: Billing.Agreement.Cancelled Webhook Event Notification not received on my applicationPaypal-US:我的应用程序未收到 Billing.Agreement.Cancelled Webhook 事件通知
【发布时间】:2020-05-25 12:37:22
【问题描述】:

取消计费协议后,我的应用程序未收到 Paypal Billing.Agreement.Cancelled Webhook 事件通知。

请找到我遵循的以下步骤来重现上述问题

1) 已配置的 Webhook(我的商家角色)

i) logged into developer.paypal.com
ii) Go to My Apps & Credentials
iii) Selected Sandbox environment
iv) Created Application
    say abc-webhook-app
    and selected the Sandbox Business Account associated with the buyer's accounts.
v) And then as my webhook event i.e BILLING_AGREEMENTS.AGREEMENT.CANCELLED was not
     showing in the UI, i subscribed for the event through API
     and provided the URL and the event_name in the request body
vi) Then i was able see the configured webhook under the above app-name

2) 取消结算协议(我作为买家的角色)

 i) I purchased something from the above merchant say foodie.com sandbox
    and payed through paypal sandbox account
ii) Now Billing Agreement is created in my paypal sandbox account
iii) Now i cancelled the billing agreement for the merchant foodie.com

观察: 我可以看到上述取消结算协议的电子邮件通知 在贝宝仪表板中

问题: 取消计费协议时,配置的 URL 未收到此事件的 Wehook 事件通知

【问题讨论】:

    标签: paypal paypal-sandbox paypal-subscriptions paypal-webhooks


    【解决方案1】:

    我猜你通过了类似的东西

    { 
        "url": "{{WebhookURL}}",
        "event_types":  [
            {
                "name": "BILLING_AGREEMENTS.AGREEMENT.CANCELLED"
            }
            ]
    }
    

    至:https://api.sandbox.paypal.com/v1/notifications/webhooks。 然后您将能够在您的开发者仪表板中看到已注册的 Webhook 事件 => 我的应用程序和凭据 => [应用程序名称]

    作为买家(来自https://www.sandbox.paypal.com/myaccount/autopay/)取消结算协议几秒/分钟后,您应该能够在开发者仪表板 => 沙箱 => Webhook 事件中看到发送到您的端点的 webhook。 如果你在那里看不到它,那么 Paypal 就不会发送出去。

    ps:确保您的端点(在上面的“url”处注册):

    • 总是返回 200 OK
    • 可公开访问
    • 接受 POST 请求
    • 无需身份验证

    【讨论】:

      猜你喜欢
      • 2016-11-02
      • 2018-01-28
      • 1970-01-01
      • 2021-01-05
      • 2016-04-15
      • 2020-10-06
      • 2021-05-01
      • 2015-02-05
      • 2020-11-15
      相关资源
      最近更新 更多