This commit is contained in:
PCoder 2019-09-14 13:33:53 +05:30
parent fefc1947e2
commit 77dd6cb14e
1 changed files with 5 additions and 5 deletions

View File

@ -225,15 +225,15 @@ class ProductOrder(Resource):
if otp_response != 200:
return {"message": "Wrong Credentials"}, 403
# Validate the given product is ok
# Validate the given product is ok
# Check the user has a payment source added
# Check the user has a payment source added
# Initiate a one-time/subscription based on product type
# Initiate a one-time/subscription based on product type
# If charge successful, create an order object
# If charge successful, create an order object
# Else handle unsuccessful cases with grace
# Else handle unsuccessful cases with grace
except KeyError as key_error:
logging.error("Key error occurred")