#Mi7
1 messages ยท Page 1 of 1 (latest)
Are you getting any errors in your code?
Where are you running that code? Locally? Looks like it may not have been saved/deployed correctly.
I am already working on an online server
code start at line 89 and finish at 131 for testing the invoice if you want to see
Have you tried using a debugger?
You need to see if those lines of code are being reached (looks like they aren't)
you are right it does not read my function $stripeClient->invoices->finalizeInvoice()
would the problem come from $stripeClient->invoiceItems->create?
That line looks ok. Can you increase your log level to Debug logging?
Also can you check the developer page of your stripe dashboard to see if the finalize invoice api call is being made
receive error 404 No such invoice: 'ii_1M5B78BlIatxOfNHwaEcoqvW'
i have close theses lines because if is it was open the transaction not working , so it is normal to have this error
Oh
You're passing the invoice item id to the finalize invoice api call
Pass the invoice id instead
yes you have right ! now is working . thanks you i can continue my tutorial for getting the link for the invoice ๐