forked from CGM_Public/pretix_original
Do not show canceled payment to user
This commit is contained in:
@@ -206,7 +206,8 @@ class OrderDetails(EventViewMixin, OrderDetailMixin, CartMixin, TicketPageMixin,
|
|||||||
ctx['can_pay'] = True
|
ctx['can_pay'] = True
|
||||||
break
|
break
|
||||||
|
|
||||||
if lp and lp.state not in (OrderPayment.PAYMENT_STATE_CONFIRMED, OrderPayment.PAYMENT_STATE_REFUNDED):
|
if lp and lp.state not in (OrderPayment.PAYMENT_STATE_CONFIRMED, OrderPayment.PAYMENT_STATE_REFUNDED,
|
||||||
|
OrderPayment.PAYMENT_STATE_CANCELED):
|
||||||
ctx['last_payment'] = self.order.payments.last()
|
ctx['last_payment'] = self.order.payments.last()
|
||||||
|
|
||||||
pp = lp.payment_provider
|
pp = lp.payment_provider
|
||||||
|
|||||||
Reference in New Issue
Block a user