Skip to content

Provide a helper method to download the PDF of an invoice #1229

Open
@dunglas

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions