Fixed a bug with unpaid stripe payments

This commit is contained in:
Raphael Michel
2015-08-13 18:43:44 +02:00
parent 63928ab557
commit 7094d8178f

View File

@@ -140,7 +140,8 @@ class Stripe(BasePaymentProvider):
def order_control_render(self, request, order) -> str:
if order.payment_info:
payment_info = json.loads(order.payment_info)
payment_info['amount'] /= 100
if 'amout' in payment_info:
payment_info['amount'] /= 100
else:
payment_info = None
template = get_template('pretixplugins/stripe/control.html')