//webhook for process order
routes.post('/process-order', async (req, res) => {
for(let i=0;i<data.length;i++) {
result._ok=1; //important: xác nhận webhook đã xử lý
//lấy nội dung chuyển khoản
if(is_JSON(data[i].description)) {
var jsonDes = typeof data[i].description=='string'? JSON.parse(data[i].description): data[i].description;
if(jsonDes.code) data[i].description = jsonDes.code;
//số tiền mà khách hàng chuyển khoản
res.status(200).send(result);