mirror of
https://github.com/pretix/pretix.git
synced 2026-08-13 11:17:01 +00:00
add missing negation
This commit is contained in:
@@ -1030,7 +1030,7 @@ class BasePaymentProvider:
|
||||
"""
|
||||
|
||||
if payment.state == OrderPayment.PAYMENT_STATE_PENDING:
|
||||
if self.abort_pending_allowed and self.abort_pending_payment_allowed(payment):
|
||||
if not (self.abort_pending_allowed and self.abort_pending_payment_allowed(payment)):
|
||||
raise PaymentException(_(
|
||||
"This payment is already being processed and can not be canceled any more."
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user