Notification kinds

The notification kind, returned by calling kind on the notification object, reveals what triggered the webhook. The webhookNotification.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.

revokedPaymentMethodMetadata

Metadata referencing the revoked payment method.

token string

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

customerId string

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

revokedPaymentMethod

The PaymentMethod object associated with the revoked payment method.