#anotherjohan_api
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. Thank you for your patience!
âąď¸ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime! If this thread is closed and you have another question you'll need to start a new thread.
đ 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/1213067838332346368
đ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
Can you confirm what it is you mean by 'fee amount'?
Is this in relation to Connect, or processing/Stripe fees for the payment?
Ordinary payment, through a payment-link. We are using 'Checkout.session.completed' as a trigger today.
Fee amount would be the cost of the transaction. Example; payment is $5, however, transactional fee is 0,1. We'd need to fetch the fee amount.
If possible, of course.
OK, got it. Then information is not stored on Checkout Session or Payment Intent objects, but instead the related Balance Transaction. Details here on how to find it via the API: https://docs.stripe.com/expand/use-cases#stripe-fee-for-payment
Ok. Interesting. To follow-up. I see that the payment intent number is used to identify the transaction. What would be the most effective way to fetch the correct number?
It should be included in your checkout.session.completed event: https://docs.stripe.com/api/checkout/sessions/object#checkout_session_object-payment_intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ok, great. Thanks for your help!