简体   繁体   English

Paypal-US:我的应用程序未收到 Billing.Agreement.Cancelled Webhook 事件通知

[英]Paypal-US: Billing.Agreement.Cancelled Webhook Event Notification not received on my application

Paypal Billing.Agreement.Cancelled Webhook Event Notification is not received on my application upon cancelling the billing agreement .取消计费协议后,我的应用程序未收到 Paypal Billing.Agreement.Cancelled Webhook 事件通知。

Please find the steps below that i followed to reproduce the above issue请找到我遵循的以下步骤来重现上述问题

1) Configured Webhook(My Role as Merchant) 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) Cancel Billing Agreement(My Role as Buyer) 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

Observations: I can see the email notifications for the above cancelled billing agreement in the paypal dashboard观察:我可以在 paypal 仪表板中看到上述取消的账单协议的电子邮件通知

Issue: Wehook event notification for this event is not received on the configured URL upon cancelling the billing agreeement问题:取消计费协议后,配置的 URL 未收到此事件的 Wehook 事件通知

I am guessing that you passed something like that我猜你通过了类似的事情

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

to: https://api.sandbox.paypal.com/v1/notifications/webhooks .到: https://api.sandbox.paypal.com/v1/notifications/webhooks Then you will be able to see the registered Webhook event in your developer dashboard => My apps & credentials => [app name]然后您将能够在开发者仪表板中看到注册的 Webhook 事件 => 我的应用程序和凭据 => [应用程序名称]

Some seconds/minutes after cancelling your Billing Agreement as a buyer (from https://www.sandbox.paypal.com/myaccount/autopay/ ) you should be able to see the webhook that was sent to your endpoint in your developer dashboard => sandbox => Webhook events.在取消您作为买家的账单协议几秒/分钟后(来自https://www.sandbox.paypal.com/myaccount/autopay/ ),您应该能够在开发者仪表板中看到发送到您端点的网络钩子 = > 沙箱 => Webhook 事件。 If you can't see it there, then Paypal never sent it out.如果您在那里看不到它,那么 Paypal 就不会发送出去。

ps: Make sure that your endpoint (registered at 'url' above) : ps:确保您的端点(在上面的“url”处注册):

  • always returns 200 OK总是返回 200 OK
  • is publicly accessible可公开访问
  • accepts POST requests接受 POST 请求
  • no authentication is required无需身份验证

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM