#imaliveagain.

1 messages · Page 1 of 1 (latest)

queen folioBOT
brave panther
#

Hello! Can you give me the ID of the Payment Intent so I can take a look?

livid bluff
#

py_3NnpUKIJwkxnVmNV0nqS5Qtz

brave panther
#

Looking, hang on...

livid bluff
#

This balance transaction is the only place I can find a reference to a 4 dollar bank fee in the whole transaction txn_1NpHh0IJwkxnVmNVsifxCzet

brave panther
#

I believe that's correct, yep. We charge failure fees separately from the transaction itself.

livid bluff
#

Is that charge to us the platform or to the connected account. I am trying to figure out how/if i need to account for this 4 dollar fee to the connected account

#

whose bank is it coming out of?

brave panther
#

In this case it looks like it's coming out of your platform account's balance. That said, we're not experts on fees here, we focus on technical questions about the API, code, etc. Stripe support will be able to help you with fee questions better than I can: https://support.stripe.com/contact/email

livid bluff
#

Ok I can contact support but if that is happening shouldn't I see a balance transaction for it?

brave panther
#

I thought txn_1NpHh0IJwkxnVmNVsifxCzet was the Balance Transaction?

livid bluff
#

It is for the amount reversal but where is that 4 dollars coming from? Should I be using net field rather than amount for reconciling balance affecting transactions?

brave panther
#

Let me take another look, hang on...

livid bluff
#

Ok I think what I am asking now is what is the best way to listen for this fee. Should I listen for a charge.failed then take the balance transaction for that and get the fee detailed to account for this charge to our platform account?

#

Is there a consistent way programmatically to identify this fee?

#

"id": "txn_1NpHh0IJwkxnVmNVsifxCzet",
"object": "balance_transaction",
"amount": -4457,
"available_on": 1694467850,
"created": 1694467850,
"currency": "usd",
"description": "Funds reversed due to payment py_3NpHgoIJwkxnVmNV12FYgH6D failed",
"exchange_rate": null,
"fee": 364,
"fee_details": [
{
"amount": 400,
"application": null,
"currency": "usd",
"description": "Payment failure fees",
"type": "stripe_fee"
},
{
"amount": -36,
"application": null,
"currency": "usd",
"description": "Stripe processing fees",
"type": "stripe_fee"
}
],

#

Can I rely on if the description is "Payment failure fees" I can assume this is related to the charge and coming out of our Platform account?

brave panther
#

Sorry for the delay, trying to figure out what we're looking at.

livid bluff
#

no problem thanks for your help

brave panther
#

It seems like txn_1NpHh0IJwkxnVmNVsifxCzet is for py_3NpHgoIJwkxnVmNV12FYgH6D which is different than the charge you originally asked about (py_3NnpUKIJwkxnVmNV0nqS5Qtz).

livid bluff
#

man I am so sorry it must have been a cut and paste error. py_3NpHgoIJwkxnVmNV12FYgH6D is the source of the charge I have been looking at

brave panther
#

I think txn_1NnpUaIJwkxnVmNVnA37yR52 is the one you want.

livid bluff
#

Yes its another transaction I was testing but same concept.

#

May I rely on the description is "Payment failure fees" to find out how much to charge the connected account

brave panther
#

Ah, found it!

#

You can listen for charge.failed Events and look at the failure_balance_transaction.

#

That's how you can get to the Balance Transaction programmatically and then you'll have the info you need to take the appropriate next steps.

livid bluff
#

OK this is great thank you!

brave panther
#

Happy to help! Sorry it took a bit of time to figure out. 🙂