From 72d651ea768b0c6c2871e6e647f9b154e291471c Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 19 Sep 2019 21:11:42 +0530 Subject: [PATCH] Improve the price shown to user --- ucloud_pay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ucloud_pay.py b/ucloud_pay.py index f900f1d..6bf73fd 100644 --- a/ucloud_pay.py +++ b/ucloud_pay.py @@ -56,12 +56,12 @@ def get_order_id(): def get_pricing(price_in_chf_cents, product_type, recurring_period): if product_type == "recurring": - return "CHF {}/ {}".format( + return "CHF {}/{}".format( price_in_chf_cents/100, recurring_period ) elif product_type == "one-time": - return "CHF {}".format(price_in_chf_cents/100) + return "CHF {} (One time charge)".format(price_in_chf_cents/100) def get_user_friendly_product(product_dict): return {