1.0.2 subscribe page w dynamically load
This commit is contained in:
@@ -12,8 +12,8 @@ def get_order_status(order):
|
||||
res_data = get_order_status(order.bank_order_id)
|
||||
|
||||
res = json.loads(res_data.text)
|
||||
order.json_data['status'] = res
|
||||
res = res['orders'][0]
|
||||
order.json_data['status'] = res
|
||||
|
||||
order.status = res['status']
|
||||
|
||||
@@ -69,8 +69,9 @@ def create_subscribe_order(data):
|
||||
order.pay_page = res_data.headers.get('location')
|
||||
|
||||
res = json.loads(res_data.text)
|
||||
order.json_data['create_order'] = res
|
||||
res = res['orders'][0]
|
||||
order.json_data['create_order'] = res
|
||||
|
||||
order.modifiedDT = datetime.strptime(res['updated'], '%Y-%m-%d %H:%M:%S')
|
||||
order.status = res['status']
|
||||
order.bank_order_id = res['id']
|
||||
|
||||
Reference in New Issue
Block a user