Improve the price shown to user

This commit is contained in:
PCoder 2019-09-19 21:11:42 +05:30
parent 671ec75584
commit 72d651ea76
1 changed files with 2 additions and 2 deletions

View File

@ -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 {