From 56a4484eb32a1bb5e5d15fa77637aa7fd6c18e93 Mon Sep 17 00:00:00 2001 From: Rechner Fox <659028+rechner@users.noreply.github.com> Date: Tue, 13 Feb 2024 01:32:18 -0800 Subject: [PATCH] Fix dispute updated event type (#308) --- registration/views/webhooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registration/views/webhooks.py b/registration/views/webhooks.py index 8aedd04b..7e1220d0 100644 --- a/registration/views/webhooks.py +++ b/registration/views/webhooks.py @@ -65,7 +65,7 @@ def process_webhook(notification): result = payments.process_webhook_refund_created(notification) elif notification.body["type"] == "payment.updated": result = payments.process_webhook_payment_updated(notification) - elif notification.body["type"] in ("dispute.created", "dispute.updated"): + elif notification.body["type"] in ("dispute.created", "dispute.state.updated"): result = payments.process_webhook_dispute_created_or_updated(notification) notification.processed = result