mirror of
https://github.com/pretix/pretix.git
synced 2026-08-07 10:17:49 +00:00
Update src/pretix/plugins/paypal2/views.py
Co-authored-by: Phin Wolkwitz <wolkwitz@pretix.eu>
This commit is contained in:
co-authored by
Phin Wolkwitz
parent
70c55730a3
commit
3a22eeaa75
@@ -366,8 +366,8 @@ def webhook(request, *args, **kwargs):
|
||||
elif event_json['resource_type'] == 'refund' or event_json['resource_type'] == 'capture':
|
||||
payloadid = get_link(event_json['resource']['links'], 'up')['href'].split('/')[-1]
|
||||
else:
|
||||
logger.exception('Unknown webhook ressource received. Event data: %s' % str(event_json))
|
||||
return HttpResponse("Unable to handle ressource", status=200)
|
||||
logger.exception('Unknown webhook resource received. Event data: %s' % str(event_json))
|
||||
return HttpResponse("Unable to handle resource", status=200)
|
||||
|
||||
refs = [payloadid]
|
||||
if event_json['resource'].get('supplementary_data', {}).get('related_ids', {}).get('order_id'):
|
||||
|
||||
Reference in New Issue
Block a user