Skip to content

Commit

Permalink
Fix dispute updated event type (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
rechner committed Feb 13, 2024
1 parent 5c493c3 commit 56a4484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registration/views/webhooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 56a4484

Please sign in to comment.