Browse Source

Indent

master
PCoder 3 years ago
parent
commit
77dd6cb14e
  1. 10
      ucloud-pay.py

10
ucloud-pay.py

@ -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")

Loading…
Cancel
Save