#Mi7

1 messages ยท Page 1 of 1 (latest)

full lagoonBOT
quick epoch
#

Are you getting any errors in your code?

pseudo shoal
#

no error

quick epoch
#

Where are you running that code? Locally? Looks like it may not have been saved/deployed correctly.

pseudo shoal
#

I am already working on an online server

quick epoch
#

Have you tried using a debugger?

#

You need to see if those lines of code are being reached (looks like they aren't)

pseudo shoal
#

you are right it does not read my function $stripeClient->invoices->finalizeInvoice()

#

would the problem come from $stripeClient->invoiceItems->create?

quick epoch
#

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

pseudo shoal
#

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

quick epoch
#

Oh

#

You're passing the invoice item id to the finalize invoice api call

#

Pass the invoice id instead

pseudo shoal
#

yes you have right ! now is working . thanks you i can continue my tutorial for getting the link for the invoice ๐Ÿ™‚