Improve the price shown to user
This commit is contained in:
parent
671ec75584
commit
72d651ea76
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue