Improved logging and transaction handling around payment confirmations

This commit is contained in:
Raphael Michel
2020-02-05 12:02:02 +01:00
parent eb11dac21e
commit da68cb618e
3 changed files with 31 additions and 22 deletions

View File

@@ -687,7 +687,7 @@ class BasePaymentProvider:
On failure, you should raise a PaymentException.
"""
payment.state = OrderPayment.PAYMENT_STATE_CANCELED
payment.save()
payment.save(update_fields=['state'])
def execute_refund(self, refund: OrderRefund):
"""