mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
OrderPayment.fail: Allow to add custom log_data
This commit is contained in:
@@ -1588,7 +1588,7 @@ class OrderPayment(models.Model):
|
|||||||
if status_change:
|
if status_change:
|
||||||
self.order.create_transactions()
|
self.order.create_transactions()
|
||||||
|
|
||||||
def fail(self, info=None, user=None, auth=None):
|
def fail(self, info=None, user=None, auth=None, log_data=None):
|
||||||
"""
|
"""
|
||||||
Marks the order as failed and sets info to ``info``, but only if the order is in ``created`` or ``pending``
|
Marks the order as failed and sets info to ``info``, but only if the order is in ``created`` or ``pending``
|
||||||
state. This is equivalent to setting ``state`` to ``OrderPayment.PAYMENT_STATE_FAILED`` and logging a failure,
|
state. This is equivalent to setting ``state`` to ``OrderPayment.PAYMENT_STATE_FAILED`` and logging a failure,
|
||||||
@@ -1616,6 +1616,7 @@ class OrderPayment(models.Model):
|
|||||||
'local_id': self.local_id,
|
'local_id': self.local_id,
|
||||||
'provider': self.provider,
|
'provider': self.provider,
|
||||||
'info': info,
|
'info': info,
|
||||||
|
'data': log_data,
|
||||||
}, user=user, auth=auth)
|
}, user=user, auth=auth)
|
||||||
|
|
||||||
def confirm(self, count_waitinglist=True, send_mail=True, force=False, user=None, auth=None, mail_text='',
|
def confirm(self, count_waitinglist=True, send_mail=True, force=False, user=None, auth=None, mail_text='',
|
||||||
|
|||||||
Reference in New Issue
Block a user