Skip to content

Commit

Permalink
Correct webhook status check
Browse files Browse the repository at this point in the history
  • Loading branch information
gcatanese authored Oct 16, 2023
1 parent 6da03a6 commit c91fba0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions in-person-payments-example/Controllers/WebhookController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private Task ProcessCancelOrRefundNotificationAsync(NotificationRequestItem noti
return Task.CompletedTask;
}

if (!notification.Success)
if (notification.Success)
{
table.PaymentStatus = PaymentStatus.Refunded;
}
Expand Down Expand Up @@ -206,4 +206,4 @@ private Task ProcessRefundedReversedNotificationAsync(NotificationRequestItem no
return Task.CompletedTask;
}
}
}
}

0 comments on commit c91fba0

Please sign in to comment.