The notification kind, returned by calling kind on the notification object, reveals what triggered the webhook. The webhook_notification.kind for Transaction webhooks will be one of the following:
The following table describes the conditions that trigger each kind of webhook.
Settlement for the transaction was declined.
May be triggered after the
Transaction successfully settled.
The kind of webhook notification.
The UTC date/time at which the webhook was triggered.
The associated transaction.