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,6 +140,7 @@ class Stripe(BasePaymentProvider):
def order_control_render(self, request, order) -> str: def order_control_render(self, request, order) -> str:
if order.payment_info: if order.payment_info:
payment_info = json.loads(order.payment_info) payment_info = json.loads(order.payment_info)
if 'amout' in payment_info:
payment_info['amount'] /= 100 payment_info['amount'] /= 100
else: else:
payment_info = None payment_info = None