Post请求需要有标题和主体有效负载。我有前端和后端分离,我使用Rest与express.js和支付网关需要服务器到服务器的通信,所以我不能从客户端这样做。= req.body;
//create body paloyad
//send request to https://payment....com/api-key
在function本机函数中,我在使用“嵌套”提取调用时遇到问题。第一次提取似乎是正确的,但是在第二次上抛出了一个错误。: 'POST', 'Content-Type': 'application/json', body: JSON.stringify(data)data to a variable console.log('Succ