[英]Paypal-US: Billing.Agreement.Cancelled Webhook Event Notification not received on my application
取消计费协议后,我的应用程序未收到 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
观察:我可以在 paypal 仪表板中看到上述取消的账单协议的电子邮件通知
问题:取消计费协议后,配置的 URL 未收到此事件的 Wehook 事件通知
我猜你通过了类似的事情
{
"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 事件。 如果您在那里看不到它,那么 Paypal 就不会发送出去。
ps:确保您的端点(在上面的“url”处注册):
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.