Indent
This commit is contained in:
parent
fefc1947e2
commit
77dd6cb14e
|
@ -225,15 +225,15 @@ class ProductOrder(Resource):
|
||||||
if otp_response != 200:
|
if otp_response != 200:
|
||||||
return {"message": "Wrong Credentials"}, 403
|
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:
|
except KeyError as key_error:
|
||||||
logging.error("Key error occurred")
|
logging.error("Key error occurred")
|
||||||
|
|
Loading…
Reference in New Issue