diff --git a/ucloud-pay.py b/ucloud-pay.py index e2dbf3e..33faee6 100644 --- a/ucloud-pay.py +++ b/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")