#JohnM 0 fees

1 messages · Page 1 of 1 (latest)

storm geode
#

Hello, do you have an example ID of a payment intent (pi_123) here that you saw this for?

magic summit
#

py_1LVj4hHFDCZvO5mL4UtvwZOn

storm geode
#

Thank you. I will check in to that and get back to you on what I can find

fierce ledge
#

What do you mean by "trap the fee" exactly?

magic summit
#

currently I use the balance transaction to save the fee associated with the payment. This is used in order for us to track the actual cost of payment to us so we can pass the cost along to the customer. We store this cost in our database.

#

The intent is that in the event of a failed payment, we are going to charge the customer to cover our cost.

#

there is a field in the webhook called failure_balance_transaction.. but in this case, this field was null

fierce ledge
#

Ok. Can you share the payment intent id of the failure?

#

The above id is a py_ id

#

Also the event id where this field was null would help

magic summit
#

this was not a paymentIntent. This was a charge. For ACH payment. The event ID is evt_1LX1gKHFDCZvO5mL0EZgc34z

snow slate
#

👋

#

Stepping in here as codename_duchess had to step away

#

Let me catch up here

bright relic
#

Hi @magic summit -- unfortunately for bank account payments using BankAccount objects, the payment failure is modeled as a Refund, but we do not show the refund on the Charge. You can find the Refund and its BalanceTransaction (with associated fees) by listing all Refunds for the Charge: https://stripe.com/docs/api/refunds/list#list_refunds-charge

magic summit
#

Ok... thanks