How to log Stripe payments in Google Sheets with a webhook
Send Stripe's checkout.session.completed webhook to a Google Sheet: a row per payment, the amount shown as $21.98 instead of 2198, no duplicates. No code.
Updated
A spreadsheet of every payment is still the easiest way to see how a small shop is doing, share it with an accountant, or chart it. Stripe sends a webhook for each completed checkout, and this guide turns each one into a row: when, who, how much, with the amount shown as $21.98 rather than Stripe's 2198. No code.
Trigger
When a webhook is received
Stripe posts a checkout.session.completed event here.Step 1
Format
Trigger → Data → Object → Amount total divided by 100Step 2
Format
Step 1 → Result as currency, USDStep 3
Add row to Google Sheets
Amount Step 2 → Result, Email Trigger → Data → Object → Customer details → Email, Event ID Trigger → ID
Before you start
- A Foliot account and a Google account that can edit the spreadsheet.
- A spreadsheet with headers in row 1, for example
Paid at,Email,Amount,Currency,Status,Session,Event ID. - A Stripe account. Test mode is fine for setting this up.
Set it up
1. Create the workflow and copy the webhook URL
Create a new workflow and choose When a webhook is received. Copy the URL (https://usefoliot.com/api/hooks/…).
2. Add the endpoint in Stripe
Following Stripe's webhooks guide (checked October 17, 2026): in the Stripe Dashboard, open Workbench → Webhooks → Create an event destination, choose Your account, the Snapshot payload (so the full checkout session is in the request), select the event checkout.session.completed, pick Webhook endpoint and paste the Foliot URL.
3. Send one test event
While the workflow is off, requests are saved as sample data instead of running. Click Get sample data, then make a test payment or run stripe trigger checkout.session.completed with the Stripe CLI. The body Foliot receives looks like this (shortened):
{
"id": "evt_1Q…",
"type": "checkout.session.completed",
"created": 1760688000,
"data": {
"object": {
"id": "cs_test_a1…",
"amount_total": 2198,
"currency": "usd",
"payment_status": "paid",
"customer_details": { "email": "ada@example.com", "name": "Ada Lovelace" },
…
}
}
}Amounts are whole numbers in the smallest unit of the currency, so 2198 is $21.98. Fields show as chips like Trigger → Data → Object → Amount total and Trigger → Data → Object → Currency.
4. Show the amount as money
Add a Format step: Number, pick Trigger → Data → Object → Amount total, Divide by 100. Then a second Format: Number, Step 1 → Result, Currency with the code USD. The panel previews $21.98 with your sample. (If you sell in several currencies, keep the divided number and write the currency in its own column instead.)
5. Add the row
Add Add row to Google Sheets, connect your Google account, paste the spreadsheet's link and click Load sheet (Google's picker opens so Foliot gets that one file), choose the tab, and fill the columns: Amount from Step 2 → Result, Currency, Status and Session from the object's fields, Email from Trigger → Data → Object → Customer details → Email, Event ID from Trigger → ID, Paid at from Trigger → Received at.
6. Test the step, then turn the workflow on
Test this step adds a real row. When it looks right, switch the workflow on. Stripe gets a 202 straight away, which it counts as delivered, and the row appears a few seconds later.
Keep the URL private
Stripe signs each request with a Stripe-Signature header, and Foliot doesn't check that signature. Stripe's endpoint settings also have no place for a custom header, so Foliot's optional secret header can't be used either. What protects this workflow is the URL itself: it's a long random token, it's only ever in your Stripe settings, and you can regenerate it from the trigger if it leaks. Rows written this way are fine for a ledger you look at; don't fulfil orders or grant access from them.
Useful variations
- No duplicate rows. Stripe says an endpoint can receive the same event more than once. Start with Find row in Google Sheets where
Event IDis Trigger → ID, then a Branch on itsfound: the Yes path does nothing, the No path adds the row. - Only paid sessions: a Filter, “Only continue if Trigger → Data → Object → Payment status is
paid”. - Other events (
invoice.paid, refunds) work the same way: one workflow per event. - Tell the team: Post to Slack or Post to Discord with the amount and email. See webhook to Slack.
Good to know
- In live mode Stripe retries deliveries that don't get a 2xx for up to three days (a few times over a few hours in test mode). Foliot answers 202 before the steps run, so a failed step shows in Foliot's run history (and emails you), not in Stripe's retries. Re-run the failed run from Foliot once it's fixed.
- Values are stored as text or numbers as the sheet would type them; anything starting with
=is kept as text, so webhook data can't run a formula. - Each event is one run: 500 runs a month on the free plan, 10,000 on Pro ($12 a month). Up to 60 requests a minute per workflow.
Other ways to do it
- Export from the Stripe Dashboard. A CSV when you need it, with every field. Right if a monthly download is enough.
- Your own webhook handler with signature verification and the Sheets API. The secure choice when rows drive fulfilment.
- A sync tool that pulls from Stripe's API on a schedule, including past payments.
Questions
Why is the amount 2198 instead of 21.98?
Stripe sends amounts as whole numbers in the currency's smallest unit (cents). A Format step divides by 100, and a second one shows the result as currency, like $21.98.
Does Foliot verify Stripe's signature?
No. Foliot answers any request to the webhook URL, so keep the URL private and regenerate it if it leaks. Use the sheet as a record, not to fulfil orders.
What about duplicate events?
Stripe can deliver an event more than once. Start the workflow with Find row in Google Sheets on the Event ID column and a Branch that only adds a row when it wasn't found.
Is it free?
Foliot's free plan includes 500 runs a month and 5 active workflows; each Stripe event is one run. Pro is $12 a month for 10,000 runs.