mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Stripe: Expose webhook listener on event domain
This commit is contained in:
@@ -15,7 +15,7 @@ logger = logging.getLogger('pretix.plugins.stripe')
|
||||
|
||||
@csrf_exempt
|
||||
@require_POST
|
||||
def webhook(request):
|
||||
def webhook(request, *args, **kwargs):
|
||||
event_json = json.loads(request.body.decode('utf-8'))
|
||||
event_type = event_json['type']
|
||||
if event_type != 'charge.refunded':
|
||||
|
||||
Reference in New Issue
Block a user