#latwelve_webhooks
1 messages ยท Page 1 of 1 (latest)
๐ 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/1297875312704487434
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
In another project I used another job to handle the fees when working with a payment intent checkout but this is a instant payment checkout so hoping to keep it simple if possible ๐
hi! well if you're using a current API version the fee is not available immediately yes due to the changes in https://docs.stripe.com/payments/payment-intents/asynchronous-capture
Hey - all let me check
I'm using
2024-06-20, which i'm guessing isn't the current way as I see an update above it.
However, I also see that charge.updated is run pretty much without fail after all my checkout.session.completed events.
Does it just make sense to listen to that and compare it to my charge id and run if any payments in my system have missing fees?
If the charge.updated will 100% have this information then I dont mind listening for that too, i was just preferring to not have a scheduled job running if it wasnt needed.
RE and ID for an example - I dont have one handy but can try to recreate one - the examples I've got access to the the ui dont have balance_transactions expanded so I cant see which one had 0 easily. Happy to go and retrieve one if my question above isn't useful enough
Does it just make sense to listen to that and compare it to my charge id and run if any payments in my system have missing fees?
Yes exactly, you need ot listen to these events in order to get the fees:
https://docs.stripe.com/payments/payment-intents/asynchronous-capture#listen-webhooks
For your use case, indeed you need to listen to charge.updated