#sukatoa
1 messages · Page 1 of 1 (latest)
Can you add your follow-up message here please
Here are the example steps on purchase:
- (FrontEnd) Create payment method
- (BackEnd) Create customer
- Attach customer and payment method to one another
- Create Subscription given customer and payment method
- Fetch invoice and confirm its finalized
- Create invoiceCreateParams via builder().setFromInvoice() method
- Create revision invoice (EXCEPTION OCCURRED HERE)
- Modify the revision invoice and update
- Finalize the revision invoice
I guess the revisions don't work for Invoices generated by a Subscription: https://stripe.com/docs/invoicing/invoice-edits#:~:text=You can’t revise invoices that are attached to subscriptions after finalization. For these types of invoices%2C the Edit invoice button is disabled.
So that error seems expected
In any case, you can't revise paid invoices – only finalized
i see. Hhhmmmm in case they wanted to forcely enforced this kind of invoice receipt, My idea would be to implement a new endpoint where it automates the download of invoice pdf, and modify the pdf file programmatically to remove the memo and footer part (pdf library to forcely remove those parts), then return it to user as "download file".
What's your thoughts on this
Yeah it seems like you're either going to need to manually manipulate the PDF yourself, or roll your own PDF generation
Thanks much, Jonny!!! Great help as always. 50/10 stars 🙇♂️
np! sorry this isn't more straight forward