forked from CGM_Public/pretix_original
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']
|
objid = event_json['data']['object']['id']
|
||||||
lookup_ids = [
|
lookup_ids = [
|
||||||
objid,
|
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":
|
elif event_json['data']['object']['object'] == "dispute":
|
||||||
func = charge_webhook
|
func = charge_webhook
|
||||||
|
|||||||
Reference in New Issue
Block a user