Notification kinds

The notification kind, returned by calling kind on the notification object, reveals what triggered the webhook. For a Partner Merchant webhook, $webhookNotification->kind will be one of the following:

  • Braintree_WebhookNotification::PARTNER_MERCHANT_CONNECTED
  • Braintree_WebhookNotification::PARTNER_MERCHANT_DECLINED
  • Braintree_WebhookNotification::PARTNER_MERCHANT_DISCONNECTED

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

Notification Type Description
partner_merchant_connected

A new merchant account has been connected to your Partner account and contains the merchant's credentials.

partner_merchant_declined

A Pending Braintree Merchant application has subsequently been declined.

partner_merchant_disconnected

A merchant has deleted or deactivated the credentials used by the Partner. This means you will no longer be able to run transactions on behalf of the merchant.

Attributes

kind enum

The kind of webhook notification.

timestamp date

The UTC time at which the webhook was triggered.

partnerMerchant
partnerMerchantId string

The unique id for the Partner Merchant

privateKey string

Available on the partner_merchant_connected webhook. The Partner Merchant's private API key

publicKey string

Available on the partner_merchant_connected webhook. The Partner Merchant's public API key

merchantPublicId string

Available on the partner_merchant_connected webhook. The Partner Merchant's unique public id

clientSideEncryptionKey string

Deprecated
Available on the partner_merchant_connected webhook. The Partner Merchant's client side encryption key

Still Have Questions?

If you can’t find an answer, give us a call at 877.434.2894 or contact our Support team