How to use Google Apps Script to get POST request from Stripe webhooks
问题 I am trying to get POST request from Stripe webhooks into Google sheet, in order process sales data in Google apps environment. I set up a web app by Google Apps Script, and try to test the webhook using testing function of Stripe. I chose "invoice.payment_succeeded" as the event type to test. My code is as follow: function doPost(e) { var jsonString = e.postData.getDataAsString(); var event = JSON.parse(jsonString) var ss = SpreadsheetApp.openById("XXX"); var sheet = ss.getSheetByName("XXX")