#suchiitsme
1 messages · Page 1 of 1 (latest)
Hi there!
Hi
On the invoice object you can check the invoice_pdf property https://stripe.com/docs/api/invoices/object#invoice_object-invoice_pdf
yes, used file_get_contents to get the file data and send as base64 attachment
But its not working
file_get_contents returns empty string
I'm not very familiar with file_get_contents. Have you tried setting up a user agent in your request?
not working
can you share the exact full code/script you're using?
ultimately I don't think we make it easy to download the PDF and that's not really how it's designed. You can simply put the URL itself into the email you send the customer and they can click that and download it!
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!