#benjamin-fazli_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1357065791484330244
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐ just to make sure we're aligned, are you talking about a receipt being generated for a Charge object, or are you trying to get a PDF of the invoice generated for Invoice objects?
Yes, i want a pdf version of the invoice beside the web one
So I can downloand it for the clinet via the app
Pdf of the paid invoice
So you're creating Invoice objects? Does the invoice_pdf field on those give you what you're looking for?
https://docs.stripe.com/api/invoices/object#invoice_object-invoice_pdf
Ah, nope, you're talking about receipts.
I'm double checking, but I'm pretty sure PDF versions of receipts aren't provided.
Yeah, I'm not spotting a way to retrieve a PDF version of those. There's only the URL for them provided in the receipt_url field on the Charge object.
I'm very sure I saw one time them somehwere
I do not know if you need to enable them or what but I know that
Invoices are the only thing I'm aware of like that, but they're a whole different type of object within Stripe and require the use of Stripe Billing.
So checkouts in this case wont create invoices?
Checkout Sessions? Not by default, but they can. Our guide showing what changes need to be made to your Checkout Session creation requests to enable that feature can be found here:
https://docs.stripe.com/payments/checkout/receipts?payment-ui=stripe-hosted#paid-invoices-hosted