Webhooks
Payment Method
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
Braintree::WebhookNotification::Kind::PaymentMethodCustomerDataUpdated
The following table describes the conditions that trigger each kind of webhook.
Notification Type | Description |
---|---|
payment_revoked_by_customer | A payment instrument that was previously enabled has been revoked by the customer or by Venmo. |
payment_method_customer_data_updated | A payment method's customer data has been updated. Currently, the only trigger for this webhook is when a customer updates their Enriched Customer Data in Venmo, provided that the merchant has enabled the feature. |
Attributes
kind
enumThe kind of webhook notification.
timestamp
dateThe UTC time at which the webhook was triggered.
revoked_payment_method_metadata
Metadata referencing the revoked payment method.
token
stringAn alphanumeric value that references a specific payment method stored in your Vault (used for recurring purchases).
customer_id
stringA 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.
payment_method_customer_data_updated_metadata
Metadata referencing the payment method whose customer data was updated.
token
stringAn alphanumeric value that references a specific payment method stored in your Vault (used for recurring purchases).
payment_method
The payment method including the customer data that was updated.
datetime_updated
stringTimestamp of the customer data update.
enriched_customer_data
Collection of fields encompassing the Enriched Customer Data feature.
profile_data
Collection of fields encompassing the customer's profile data.
username
stringThe customer's Venmo username.
first_name
stringThe customer's first name.
last_name
stringThe customer's last name.
phone_number
stringThe customer's phone number.
email
stringThe customer's email.
billing_address
Collection of fields encompassing the customer's billing address.
street_address
stringThe billing address building number and street name.
extended_address
stringThe billing address additional information.
locality
stringThe billing address locality.
region
stringThe billing address region.
postal_code
stringThe billing address postal code.
shipping_address
Collection of fields encompassing the customer's shipping address.
street_address
stringThe shipping address building number and street name.
extended_address
stringThe shipping address additional information.
locality
stringThe shipping address locality.
region
stringThe shipping address region.
postal_code
stringThe shipping address postal code.
fields_updated
ArrayArray containing which fields from the data collection were updated, triggering the webhook.