4

My web app currently emails customers their Stripe receipt after purchase via stripe checkout. However for some customers this isn't enough – they want a paid invoice for the purchase with the information of my business and their business on it. How do you generate a PDF with this info?

I've investigated Stripe Invoices, but that seems to be a system for collecting payment. I already have payment from the checkout sessions. I just want to send the customer a souped-up receipt, really.

I've also considered using some js PDF library to generate the PDF myself, but it felt like there must be an easy way to do what I want with the Stripe API.

Hooper
  • 195
  • 13
  • The email containing the receipt sent following payment should also include a link to download an invoice PDF. – Jonathan Steele Nov 19 '21 at 12:16
  • @JonathanSteele unfortunately stripe checkout receipts don't seem to have that. https://b.stripecdn.com/docs-statics-srv/assets/terminal-pre-built-receipt.7879fcc1c9eaea36e3af4dabada4f82b.png – Hooper Nov 19 '21 at 15:10

2 Answers2

3

Since ~November 2022 there is a feature just for this: https://stripe.com/docs/payments/checkout/post-payment-invoices

It lets you generate an invoice just by setting a parameter in the request for creating Checkout Session.

Jen
  • 1,206
  • 9
  • 30
  • 1
    The feature is out of beta now, you can find it here https://stripe.com/docs/payments/checkout/post-payment-invoices – Happy Dec 07 '22 at 15:34
  • 1
    @Happy Cool! Consider posting that as an answer. I think it should be the accepted solution to the op's question. .) – Jen Dec 07 '22 at 16:51
  • I did but sadly the mods deleted it because apparently its a duplicated answer and I should have picked from the existing answers .. meh. fyi @chrisf – Happy Dec 08 '22 at 10:39
  • @Happy Jeez, these mods. I'll edit my answer at least. Thanks for pointing that out. – Jen Dec 10 '22 at 19:26
2

I've asked Stripe support the same thing.

They said creating invoices with Stripe Checkout is a common feature request but it sounds like it won't be coming for many months.

The only workaround for now is to use invoicing instead of Checkout:

https://stripe.com/docs/invoicing/integration

And for a similar UI to Checkout, use this: https://stripe.com/docs/invoicing/hosted-invoice-page

KevinUK
  • 5,053
  • 5
  • 33
  • 49