mirror of
https://github.com/pretix/pretix.git
synced 2026-08-11 10:57:00 +00:00
revert BasePayment extension
This commit is contained in:
@@ -344,8 +344,6 @@ def webhook(request, *args, **kwargs):
|
||||
event_body = request.body.decode('utf-8').strip()
|
||||
event_json = json.loads(event_body)
|
||||
|
||||
return HttpResponse(status=500)
|
||||
|
||||
# V1/V2 Sorting -- Start
|
||||
if 'event_type' not in event_json:
|
||||
return HttpResponse("Invalid body, no event_type given", status=400)
|
||||
|
||||
@@ -352,7 +352,7 @@ class OrderDetails(EventViewMixin, OrderDetailMixin, CartMixin, TicketPageMixin,
|
||||
if lp.state == OrderPayment.PAYMENT_STATE_PENDING and not pp.abort_pending_allowed:
|
||||
ctx['can_pay'] = False
|
||||
|
||||
ctx['can_pay'] = ctx['can_pay'] and self.order._can_be_paid()
|
||||
ctx['can_pay'] = ctx['can_pay'] and self.order._can_be_paid() is True
|
||||
|
||||
elif self.order.status == Order.STATUS_PAID:
|
||||
ctx['can_pay'] = False
|
||||
|
||||
Reference in New Issue
Block a user