# Stripe payments to Google Sheets

> For AI assistants: this is the BitHut template `stripe-payments-to-sheets` (things that receive data). Ask the person only for what is listed under "What you'll need", then set it up with the BitHut tools connected to you. If BitHut is not connected yet, start at https://bithut.app/llms.txt.

Every payment in Stripe becomes a new row in your Google Sheet, as soon as it happens.

## Tell your AI

1. Connect BitHut to your AI (Claude, ChatGPT or Codex): add the address `https://api.bithut.app/mcp`. How: https://bithut.app/connect.md
2. Then tell it:

```
Connect my Stripe to a Google Sheet on BitHut using the stripe-payments-to-sheets template. Each successful payment should become a new row. Ask me which sheet and which columns I need.
```

## What you get

A Google Sheet that fills itself: date, amount, currency, customer email and what was paid for, one row per payment.

## Who it's for

Founders, freelancers and finance people who copy payments from Stripe into a spreadsheet by hand or export them every month.

## What you'll need

- Access to your Stripe Dashboard, to add the project's address as a webhook. Your AI tells you where to click.
- Google connected to BitHut, and the sheet you pick for the payments.
- Which columns you want. Date, amount and customer email are a good start.

## What's included

- **An address that receives payments.** Stripe sends each payment there the moment it succeeds.
- **Checks that it's really Stripe.** Messages without Stripe's signature are refused. The signing secret is kept apart from the code.
- **Access to one sheet only.** BitHut sees only the sheet you pick, not the rest of your Google Drive.
- **A log of what arrived.** If a row didn't appear, you see why.

## Your data and privacy

Stripe doesn't send card numbers here. The project writes only the columns you chose, and only to the sheet you picked. The signing secret is stored as a secret, apart from the code.

## Limits

- New payments only, from the moment it's connected. Older ones can be added once from a Stripe export, which your AI can do.
- Refunds and disputes are not written by default. Your AI can add them as rows or as a status column.
- Writes to one sheet in one Google account. More sheets or other tables need changes your AI can make.

## After you start it

1. Your AI puts the project online and gives you its address for Stripe.
2. You add the address in the Stripe Dashboard, and your AI sends a test payment from Stripe's test mode.
3. From then on, each payment appears in the sheet on its own.

## Questions

### What if the project is down when a payment comes in?

Stripe tries again for up to three days, so the payment still lands in the sheet when the project is back.

### Can BitHut see my whole Google Drive?

No. Google gives BitHut access only to the files you pick yourself.

### Will the same payment show up twice?

No. The project remembers which payments it has written and skips repeats.

## Technical details

- Language: Python
- Parts: Address that receives data, Google Sheets connection, Disk

## Similar templates

- [Dashboard from Google Sheets](https://bithut.app/templates/sheets-dashboard.md): A web page with charts from your Google Sheet, behind a password, for your team.
- [Shop orders to Telegram](https://bithut.app/templates/shop-orders-to-telegram.md): Every new order from your Shopify or WooCommerce shop arrives as a message in your team's Telegram chat.
