Skip to content

Email Stripe receipts after credits checkout - #307

Merged
suguanYang merged 1 commit into
mainfrom
fix/suguanYang/stripe-checkout-receipts
Aug 19, 2026
Merged

Email Stripe receipts after credits checkout#307
suguanYang merged 1 commit into
mainfrom
fix/suguanYang/stripe-checkout-receipts

Conversation

@suguanYang

Copy link
Copy Markdown
Contributor

Summary

  • Enable Stripe invoice_creation on credits-package Checkout so buyers get an invoice and receipt PDF after a successful one-time payment.
  • Set payment_intent_data.receipt_email when the user email is known, so live-mode receipts still send even if Dashboard customer emails are off.

Test plan

  • uv run pytest apps/api/tests/unit/test_stripe_checkout_receipts.py -q
  • Buy a credits package in a Stripe test/live Checkout session and confirm the customer email receives an invoice/receipt
  • Confirm Dashboard Settings → Business → Customer emails → Successful payments is enabled if you also want Stripe’s standard payment emails

Made with Cursor

One-time Checkout sessions did not request invoice creation or receipt_email, so buyers were not guaranteed a receipt after purchasing credits.

Co-authored-by: Cursor <cursoragent@cursor.com>
@suguanYang
suguanYang merged commit c0344f0 into main Aug 19, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant