I am working on braintree and I want to send custom email notifications to my customers as I am working with recurring billing, so every month these custom notifications should
I know this is an old question, but according to the docs, you can use this code to test your webhook code:
Dictionary sampleNotification = gateway.WebhookTesting.SampleNotification(
WebhookKind.SUBSCRIPTION_WENT_PAST_DUE, "my_id"
);
WebhookNotification webhookNotification = gateway.WebhookNotification.Parse(
sampleNotification["bt_signature"],
sampleNotification["bt_payload"]
);
webhookNotification.Subscription.Id;
// "my_id"