#scylla_processing-fees-balance-transactions

1 messages ¡ Page 1 of 1 (latest)

warm starBOT
#

👋 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.

sleek saffron
#

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

#

All you'll need to do is grab the balance transaction id in the event body and retrieve it

warm starBOT
toxic owl
#

Worked perfectly - thank you!