mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Except when triggered by a webhook.
This commit is contained in:
committed by
Raphael Michel
parent
2de328a33b
commit
d13198167a
@@ -202,10 +202,10 @@ class Stripe(BasePaymentProvider):
|
||||
'support if the problem persists.'))
|
||||
logger.error('Stripe error: %s' % str(err))
|
||||
except stripe.error.StripeError:
|
||||
mark_order_refunded(order)
|
||||
mark_order_refunded(order, user=request.user)
|
||||
messages.warning(request, _('We were unable to transfer the money back automatically. '
|
||||
'Please get in touch with the customer and transfer it back manually.'))
|
||||
else:
|
||||
order = mark_order_refunded(order)
|
||||
order = mark_order_refunded(order, user=request.user)
|
||||
order.payment_info = str(ch)
|
||||
order.save()
|
||||
|
||||
Reference in New Issue
Block a user