Stripe: Expose webhook listener on event domain

This commit is contained in:
Raphael Michel
2016-08-29 22:46:45 +02:00
parent c30ff5e657
commit e5f76d92a2
3 changed files with 9 additions and 3 deletions

View File

@@ -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':