#pelf-stripe-fees
1 messages · Page 1 of 1 (latest)
Hello! Have you seen this guide? https://stripe.com/docs/expand/use-cases#stripe-fee-for-payment
There's then a fee & fee_details field on the Balance Transaction object: https://stripe.com/docs/api/balance_transactions/object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
In some instances with async payment methods like ACSS, there won't be a fee until it settles/succeeds: https://stripe.com/docs/payments/acss-debit/accept-a-payment?platform=web#web-confirm-paymentintent-succeeded
If you share the Payment Intent ID I can double check
I was doing expand: ['charges.data.balance_transaction'], which works for card payments, but doesn't return the balance transaction for the acss_debit payment
pi_3KGhmtDFX5Cbjrb91kLGZAAM thanks
Yeah, seems it's still 'processing'
So it's unlikely for there to be a related Balance Transaction object until that has succeeded. You should listen for the payment_intent.succeeded event and handle accordingly in a webhook
Ok. So there's no way to get the fee before that happens?
There's not, other than pre-calculating it yourself
There's details on specific local payment methods like pre-auth debits here: https://stripe.com/en-gb-ca/pricing/local-payment-methods
Should be able to calculate from that, based on the PI amount!
Cool. Thanks for the help!