#sukatoa

1 messages · Page 1 of 1 (latest)

rapid wedgeBOT
old owl
#

Can you add your follow-up message here please

solid karma
#

Here are the example steps on purchase:

  1. (FrontEnd) Create payment method
  2. (BackEnd) Create customer
  3. Attach customer and payment method to one another
  4. Create Subscription given customer and payment method
  5. Fetch invoice and confirm its finalized
  6. Create invoiceCreateParams via builder().setFromInvoice() method
  7. Create revision invoice (EXCEPTION OCCURRED HERE)
  8. Modify the revision invoice and update
  9. Finalize the revision invoice
old owl
#

So that error seems expected

#

In any case, you can't revise paid invoices – only finalized

solid karma
#

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

old owl
#

Yeah it seems like you're either going to need to manually manipulate the PDF yourself, or roll your own PDF generation

solid karma
#

Thanks much, Jonny!!! Great help as always. 50/10 stars 🙇‍♂️

old owl
#

np! sorry this isn't more straight forward