diff --git a/authorisation-adjustment-example/Controllers/WebhookController.cs b/authorisation-adjustment-example/Controllers/WebhookController.cs index ca073048..0834bf8a 100644 --- a/authorisation-adjustment-example/Controllers/WebhookController.cs +++ b/authorisation-adjustment-example/Controllers/WebhookController.cs @@ -83,7 +83,8 @@ public async Task> Webhooks(NotificationRequest notificatio // Documentation: https://docs.adyen.com/online-payments/refund#refunded-reversed await ProcessRefundedReversedNotificationAsync(container.NotificationItem); - return Ok("[accepted]"); + // Return a 202 status with an empty response body + return Accepted(); } catch (Exception e) { @@ -408,4 +409,4 @@ private Task ProcessRefundedReversedNotificationAsync(NotificationRequestItem no return Task.CompletedTask; } } -} \ No newline at end of file +}