#pelf-stripe-fees

1 messages · Page 1 of 1 (latest)

unborn cobalt
#

If you share the Payment Intent ID I can double check

twilit saffron
#

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

unborn cobalt
#

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

twilit saffron
#

Ok. So there's no way to get the fee before that happens?

unborn cobalt
#

There's not, other than pre-calculating it yourself

twilit saffron
#

Oh. Is that possible in a reliable way?

#

Any pointers on how I could do so?

unborn cobalt
#

Should be able to calculate from that, based on the PI amount!

twilit saffron
#

Cool. Thanks for the help!