forked from CGM_Public/pretix_original
PPv2: Surface error-messages if XHR-call fails
This commit is contained in:
@@ -151,7 +151,7 @@ class XHRView(View):
|
||||
}
|
||||
|
||||
paypal_order = prov._create_paypal_order(request, None, cart)
|
||||
r = JsonResponse(paypal_order.dict())
|
||||
r = JsonResponse(paypal_order.dict() if paypal_order else {})
|
||||
r._csp_ignore = True
|
||||
return r
|
||||
|
||||
|
||||
Reference in New Issue
Block a user