#maxitrol_payment-intent-fees
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/1326947070950637678
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hello
Fees are available on the balance transaction object
So I recommend you listen to payment_intent.succeeded events
In that event data there will be a charge id under latest_charge: https://docs.stripe.com/api/payment_intents/object#payment_intent_object-latest_charge
You can then retrieve that charge via the Stripe API: https://docs.stripe.com/api/charges/retrieve and expand its balance transaction property: https://docs.stripe.com/api/charges/object#charge_object-balance_transaction via https://docs.stripe.com/expand
Balance Transactions have fee details: https://docs.stripe.com/api/balance_transactions/object#balance_transaction_object-fee_details
I need help, I have a store in Colombia but I operate in Brazil. I only did the integration with Shopify and nothing else, and this morning I saw that a customer was trying to make a payment but it was declined (due to suspected fraud). Should I have made any configuration in Stripe before starting to receive payments?
@sharp heart please open your own thread in #help
@sharp heart this isn't your thread
wait. so i must listen to (1) payment_intent.succeeded and from that response 2) must read latest charge and then 3) i must call API with that latest charge ID?
did i understand correctly?
Yes
thank you! i will try. but somewhere i read that no matter what i do, API will always return NULL for the fee amount. i will try and see
That's not true at all
If payment succeeded, fee will be populated