Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Commit

Permalink
Added a comment on the Python server
Browse files Browse the repository at this point in the history
  • Loading branch information
adreyfus-stripe committed Mar 2, 2019
1 parent 40d9a52 commit f10f49a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/python/inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def calculate_payment_amount(items: list) -> int:

@staticmethod
def get_shipping_cost(id) -> int:
# This would be a lookup in your database to get the shipping prices
shipping_cost = {'free': 0, 'express': 500}
return shipping_cost[id]

Expand Down

0 comments on commit f10f49a

Please sign in to comment.