#NicolasB-create-an-invoice
1 messages ยท Page 1 of 1 (latest)
Hello ๐
What's the actual use-case here? Are you trying to send the receipts to your customers?
I understand there is a conceptual difference between receipts and invoices
so what's the use-case? Are these for one-time payments or subscriptions? more context would help ๐
It's for paying for credits (by 1 or by 5pack, so 2 products) in a web app.
They select there how many or if they want the pack. Then the Stripe Checkout comes up, and I have to generate an invoice for that sell when the payment is successful
Server-side you can listen to checkout.session.completed event and then trigger an invoice creation
https://stripe.com/docs/payments/checkout/fulfill-orders#fulfill
ok, I'll check it out, thanks