Stripe: Fix storage of failed refunds

This commit is contained in:
Raphael Michel
2021-11-16 12:18:33 +01:00
parent 993da5a392
commit 31751cbd79

View File

@@ -585,7 +585,7 @@ class StripeMethod(BasePaymentProvider):
err = {'message': str(e)}
logger.exception('Stripe error: %s' % str(e))
refund.info = err
refund.info_data = err
refund.state = OrderRefund.REFUND_STATE_FAILED
refund.execution_date = now()
refund.save()