Skip to content

Commit

Permalink
Return 202 Accepted
Browse files Browse the repository at this point in the history
  • Loading branch information
gcatanese authored Mar 12, 2024
1 parent 86c64b7 commit 50d8d27
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ public async Task<ActionResult<string>> 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)
{
Expand Down Expand Up @@ -408,4 +409,4 @@ private Task ProcessRefundedReversedNotificationAsync(NotificationRequestItem no
return Task.CompletedTask;
}
}
}
}

0 comments on commit 50d8d27

Please sign in to comment.