#idemoov-lo_code

1 messages ยท Page 1 of 1 (latest)

vestal houndBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1389578826920755311

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

flint hamlet
#

๐Ÿ‘‹ happy to help

median raven
#

hi

flint hamlet
#

I'm not sure I understand the question

median raven
#

I am migrating to the latest version of the stripe api so invoice.charge no longer exist (It introduce invoice.payments)

#

The question is to get the balanceTransaction is there a way to get it without iterating on each payments of the invoice (I know i will only have one payment on an invoice so it's okay but is there a cleaner way)

flint hamlet
#

no unfortunately there isn't

median raven
#

Ok not really a problem for me but wanted to be sure there wasn't any cleaner way

#

it's to get application_fee, stripe_fee, and net amount that was done on an invoice

flint hamlet
#

yes there's no other way

median raven
#

Ok thanks for the informations and the fast response, have a good day

flint hamlet
#

you too, let me know if you need any more help

median raven
#

Maybe i have one question is payments auto send on invoice paid webhook event now ? I can't find the information in the changelog.

median raven
#

Yes i am on that page but it doesn't talk about webhook I think

flint hamlet
#

depending on the API version pinned to the webhook endpoint, the object returned would have the same structure as the API object on that same API version

median raven
#

Ah ok didn't know that thanks for the information