#scylla_processing-fees-balance-transactions
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/1351216346205130805
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Fees are recorded on the Balance Transaction object: https://docs.stripe.com/api/balance_transactions . Getting there from the Checkout Session object is a several step process, however. Checkout Sessions have payment intents: https://docs.stripe.com/api/checkout/sessions/object#checkout_session_object-payment_intent . You can retrieve that and then see the payment intent's latest charge id: https://docs.stripe.com/api/payment_intents/object#payment_intent_object-latest_charge . If you retrieve that you'll get the balance transaction id: https://docs.stripe.com/api/charges/object#charge_object-balance_transaction
And Balance transactions have a detailed fee breakdown: https://docs.stripe.com/api/balance_transactions/object#balance_transaction_object-fee_details
If you listen to charge.succeeded webhook events: https://docs.stripe.com/api/events/types#event_types-charge.succeeded then you'll be able to get there faster
All you'll need to do is grab the balance transaction id in the event body and retrieve it
Worked perfectly - thank you!