The notification kind, returned by calling kind on the notification object, reveals what triggered the webhook. The webhook_notification.kind for Local Payment Method webhooks will be one of the following:
The following table describes the conditions that trigger each kind of webhook.
The customer has approved the instant local payment and the purchase amount has been withdrawn from their account. A transaction can now be created by calling Transaction: Sale with the payment_method_nonce.
The instant local payment has been reversed and the purchased amount has been refunded to the customer's account.
The non-instant local payment has been completed by the buyer.
The non-instant local payment has expired.
The kind of webhook notification.
The payment_id of the instant or non-instant local payment. Can be used to correlate this webhook to an open order in your system.
The id of the payment context.
The payment_method_nonce can be used to complete the instant transaction by calling Transaction: Sale. Only present for local_payment_completed webhooks.
The transaction associated with the non-instant local payment. Can be used to query the status of the transaction. Only present for local_payment_funded webhooks.