订阅所有 paypal webhooks 事件

subscribe to all paypal webhooks events

我们如何在 paypal webhooks 中一次订阅所有事件?

{
"url": "https://www.yeowza.com/paypal_webhook",
"event_types": [
    {
        "name": "PAYMENT.AUTHORIZATION.CREATED"
    },
    {
        "name": "PAYMENT.AUTHORIZATION.VOIDED"
    }
]

}

这说明订阅特定的 webhook,但不是所有的 webhook。

您可以使用以下负载订阅所有 webhooks:

"event_types": [
        {
            "name": “*"
        }
    ]

请参阅 PayPal Webhooks 文档@https://developer.paypal.com/docs/api/#create-a-webhook

Note: To subscribe to all event types, use an * (asterisk) as a wildcard for an event name in the event_types field. When you specify the * wildcard for an event name in the event_types field, your webhook is automatically subscribed to all event types, including any new event types as support for them is added. This is also true when you update an existing webhook by replacing a previously specified array of event types with the * wildcard as the only event name. To see all currently supported event types, you can issue a request to Get a reference list of webhook event types.