Open
Description
A helper method is provided to download the PDF of a quote ($quote->pdf()
), but not for an invoice.
Unfortunately, doing file_get_contents($invoice->invoice_pdf)
to download the PDF doesn't work anymore because PHP doesn't handle the redirection to S3 properly.
Using curl
is a working workaround (see dunglas/stripe-invoice-exporter#1), but a dedicated helper method could be convenient.
Best regards,
Activity