flutterwave

Unable to send Post Request on Google Apps Script

丶灬走出姿态 提交于 2019-12-13 03:57:16
问题 I am trying to send a post request to verify a transaction. I sent the same post request with Postman and I got a response as shown below: Apps Script Code.gs: function postRequest() { var url = "https://ravesandboxapi.flutterwave.com/flwv3-pug/getpaidx/api/v2/verify"; var options = { "method": "post", "headers": { "Content-Type": "application/json" }, "payload": { "SECKEY": "FLWSECK-e6db11d1f8a6208de8cb2f94e293450e-X", "txref": "MC-1520443531487" } }; const response = UrlFetchApp.fetch(url,