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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With