From fdffe2389b2f65356bb4195984c5c97e4116e581 Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 6 Sep 2018 00:31:17 +0200 Subject: [PATCH] Round price --- utils/stripe_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/stripe_utils.py b/utils/stripe_utils.py index 0c3b112c..b4410746 100644 --- a/utils/stripe_utils.py +++ b/utils/stripe_utils.py @@ -321,7 +321,7 @@ class StripeUtils(object): if price is not None: stripe_plan_id_string_with_price = '{}-{}chf'.format( stripe_plan_id_string, - price + round(price, 2) ) return stripe_plan_id_string_with_price else: @@ -338,7 +338,7 @@ class StripeUtils(object): cpu=cpu, memory=memory, disk_size=disk_size, - price=price + price=round(price, 2) ) @handleStripeError