Notification kinds

The notification kind, returned by calling kind on the notification object, reveals what triggered the webhook. The webhook_notification.kind for Payment Method webhooks will be one of the following:

  • braintree.WebhookNotification.Kind.PaymentMethodRevokedByCustomer

The following table describes the conditions that trigger each kind of webhook.

Notification Type Description
payment_method_revoked_by_customer

A payment instrument that was previously enabled has been revoked by the customer.
Currently this webhook will only be sent when a customer cancels their PayPal billing agreement.

Attributes

kind enum

The kind of webhook notification.

timestamp date

The UTC time at which the webhook was triggered.

revoked_payment_method_metadata

Metadata referencing the revoked payment method.

token string

An alphanumeric value that references a specific payment method stored in your Vault.

customer_id string

A value representing an existing customer stored in your Vault. Use Customer.find() call to look up a single customer.

revoked_payment_method

The PaymentMethod object associated with the revoked payment method.