public void SampleNotification_ReturnsANotificationForLocalPaymentCompleted() { Dictionary <string, string> sampleNotification = gateway.WebhookTesting.SampleNotification(WebhookKind.LOCAL_PAYMENT_COMPLETED, "my_id"); WebhookNotification notification = gateway.WebhookNotification.Parse(sampleNotification["bt_signature"], sampleNotification["bt_payload"]); Assert.AreEqual(WebhookKind.LOCAL_PAYMENT_COMPLETED, notification.Kind); LocalPaymentCompleted localPayment = notification.LocalPaymentCompleted; Assert.AreEqual("a-payment-id", localPayment.PaymentId); Assert.AreEqual("a-payer-id", localPayment.PayerId); }
public void SampleNotification_ReturnsANotificationForLocalPaymentCompleted() { Dictionary <string, string> sampleNotification = gateway.WebhookTesting.SampleNotification(WebhookKind.LOCAL_PAYMENT_COMPLETED, "my_id"); WebhookNotification notification = gateway.WebhookNotification.Parse(sampleNotification["bt_signature"], sampleNotification["bt_payload"]); Assert.AreEqual(WebhookKind.LOCAL_PAYMENT_COMPLETED, notification.Kind); LocalPaymentCompleted localPayment = notification.LocalPaymentCompleted; Assert.AreEqual("a-payment-id", localPayment.PaymentId); Assert.AreEqual("a-payer-id", localPayment.PayerId); Assert.AreEqual("ee257d98-de40-47e8-96b3-a6954ea7a9a4", localPayment.PaymentMethodNonce); Assert.NotNull(localPayment.Transaction); }