mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Don't try to cancel payment if provider plugin is disabled (PRETIXEU-754)
This commit is contained in:
@@ -1210,7 +1210,8 @@ class OrderTransition(OrderView):
|
||||
OrderPayment.PAYMENT_STATE_CREATED)):
|
||||
try:
|
||||
with transaction.atomic():
|
||||
p.payment_provider.cancel_payment(p)
|
||||
if p.payment_provider:
|
||||
p.payment_provider.cancel_payment(p)
|
||||
self.order.log_action('pretix.event.order.payment.canceled', {
|
||||
'local_id': p.local_id,
|
||||
'provider': p.provider,
|
||||
|
||||
Reference in New Issue
Block a user