/// <summary> /// The sample notification. /// </summary> /// <param name="kind"> /// The kind. /// </param> /// <param name="sampleId"> /// The sample id. /// </param> /// <returns> /// The <see cref="WebhookNotification"/>. /// </returns> public WebhookNotification SampleNotification(WebhookKind kind, string sampleId) { var sample = this.BraintreeGateway.WebhookTesting.SampleNotification(kind, sampleId); return(this.Parse(sample["signature"], sample["payload"])); }
/// <summary> /// The sample notification. /// </summary> /// <param name="kind"> /// The kind. /// </param> /// <param name="sampleId"> /// The sample id. /// </param> /// <returns> /// The <see cref="WebhookNotification"/>. /// </returns> public WebhookNotification SampleNotification(WebhookKind kind, string sampleId) { var sample = BraintreeGateway.WebhookTesting.SampleNotification(kind, sampleId); return this.Parse(sample["signature"], sample["payload"]); }