Skip to content

dropseed/stripe-report

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stripe-report

A dead-simple email digest of Stripe activity over the last 24 hours (meant to be sent daily).

pipx run --spec git+https://github.com/dropseed/stripe-report stripe-report

This is intended to help keep tabs on SaaS activity happening in Stripe. Especially if you have the payment email notifications turned off, or process check/ACH payments in Stripe and need to keep tabs on open invoices.

CleanShot 2023-01-05 at 16 22 50

Settings

All settings are configured by environment variables (see GitHub Action example below).

You can include multiple Stripe accounts in your report -- the account keys are parsed from env variables beginning with STRIPE_KEY_. For example, STRIPE_KEY_accountone=rk_live_... and STRIPE_KEY_accounttwo=rk_live_....

When creating Stripe API keys, you should use restricted keys, and give read permission to Events, Customers, and Invoices.

GitHub Actions

Set your repository secrets, then save this in a GitHub repo for a daily stripe report:

# .github/workflows/stripe-report.yml
name: stripe-report

on:
  schedule:
  - cron: 0 8 * * *
  workflow_dispatch: {}

jobs:
  send:
    runs-on: ubuntu-latest
    steps:
    - run: pipx run --spec git+https://github.com/dropseed/stripe-report stripe-report
      env:
        TO_EMAIL: [email protected]
        FROM_EMAIL: "Reports <[email protected]>"
        SMTP_HOST: smtp.postmarkapp.com
        SMTP_USERNAME: ${{ secrets.POSTMARK_TOKEN }}
        SMTP_PASSWORD: ${{ secrets.POSTMARK_TOKEN }}
        STRIPE_KEY_mybusiness: ${{ secrets.STRIPE_KEY_MYBUSINESS }}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published