revert BasePayment extension

This commit is contained in:
Lukas Bockstaller
2026-08-10 16:34:12 +02:00
parent cb9ec93695
commit fa615e1798
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -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)
+1 -1
View File
@@ -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