mirror of
https://github.com/pretix/pretix.git
synced 2026-04-26 23:52:35 +00:00
Stripe: Fix handling of charges without source
This commit is contained in:
@@ -196,7 +196,7 @@ def webhook(request, *args, **kwargs):
|
||||
objid = event_json['data']['object']['id']
|
||||
lookup_ids = [
|
||||
objid,
|
||||
event_json['data']['object'].get('source', {}).get('id')
|
||||
(event_json['data']['object'].get('source') or {}).get('id')
|
||||
]
|
||||
elif event_json['data']['object']['object'] == "dispute":
|
||||
func = charge_webhook
|
||||
|
||||
Reference in New Issue
Block a user