From 98a25361ea332ccec2c965bd6a4abbcb691f584c Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 14 Sep 2019 22:31:23 +0530 Subject: [PATCH] Put client orders properly --- ucloud_pay.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ucloud_pay.py b/ucloud_pay.py index 638fac4..5439e64 100644 --- a/ucloud_pay.py +++ b/ucloud_pay.py @@ -302,6 +302,9 @@ class ProductOrder(Resource): "ordered_at": int(time.time()), "product": product_obj, } + client.put("/v1/user/{}/orders".format( + data['email']), json.dumps(order_obj), + value_in_json=True) return {"message": "Order successful", "order_details": order_obj}, 200 else: