From c91fba0eeed28161500ab9d7e648dde612146b67 Mon Sep 17 00:00:00 2001 From: Beppe Catanese <1771700+gcatanese@users.noreply.github.com> Date: Mon, 16 Oct 2023 10:10:29 +0200 Subject: [PATCH] Correct webhook status check --- in-person-payments-example/Controllers/WebhookController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/in-person-payments-example/Controllers/WebhookController.cs b/in-person-payments-example/Controllers/WebhookController.cs index 3e45c9b..36fa501 100644 --- a/in-person-payments-example/Controllers/WebhookController.cs +++ b/in-person-payments-example/Controllers/WebhookController.cs @@ -134,7 +134,7 @@ private Task ProcessCancelOrRefundNotificationAsync(NotificationRequestItem noti return Task.CompletedTask; } - if (!notification.Success) + if (notification.Success) { table.PaymentStatus = PaymentStatus.Refunded; } @@ -206,4 +206,4 @@ private Task ProcessRefundedReversedNotificationAsync(NotificationRequestItem no return Task.CompletedTask; } } -} \ No newline at end of file +}