This commit is contained in:
Franjo Mindek
2025-10-01 13:09:48 +02:00
parent 34209aeeda
commit f288f9b163

View File

@@ -64,7 +64,7 @@ export const stripeWebhook: PaymentsWebhook = async (
} catch (err) {
if (err instanceof UnhandledWebhookEventError) {
// We must return a 2XX status code, otherwise Stripe will keep retrying the event.
response.status(202).send();
response.status(204).send();
// In development, it is likely that we will receive events that we are not handling.
// E.g. via the `stripe trigger` command.