#hmlh7-applicationfee-capture

1 messages · Page 1 of 1 (latest)

hasty bay
opaque smelt
#

yep, that's what I'm using but there is an issue

#

when trying to capture less than the original amount billed, there is a "refund" that's issued that cuts into the application_fee_amount

#

"When refunding a charge that has a transfer_data[destination], by default the destination account keeps the funds that were transferred to it, leaving the platform account to cover the negative balance from the refund"

hasty bay
#

Can you give me a concrete example?

opaque smelt
#

Yep, so recently I made a charge for $1,426, but I only captured $1,376

#

This initiaed a "refund" of $50, which was then taken out of the application_fee_amount of $247

hasty bay
#

no sorry

#

do you have a concrete example happening in your account

#

I just need the pi_123 and then I can walk back from that

opaque smelt
#

oh ok

#

pi_3LZe8yKOa3QjHUm81mss1DGV

hasty bay
#

thanks looking

opaque smelt
#

appreciate it

hasty bay
#

okay sorry trying to make sense of it, looks like a Link payment not normal card and such

opaque smelt
#

yeah makes sense--does Link make a difference? I think the same things happen with a normal card

hasty bay
#

no idea yet, sorry I'm still digging will take a while, tons of objects involved in a partially captured destination charge in the first place

opaque smelt
#

ok, really appreciate your help

hasty bay
#

like when I try locally myself with a Direct charge, my ApplicationFee is unchanged at least

#

Going to see if Destination behaves differently since it should not

opaque smelt
#

ok, the key is trying to collect less than the original amount right?

hasty bay
#

yeah I am not seeing that behaviour with card so I'm confused

#

Let's take a step back for a sec

#

what tells you something was partially refunded, I'm confused overall

#

like where exactly are you looking and what do you see

opaque smelt
#

When I capture less than the original payment intent, it says partial refund in the payments tab

hasty bay
#

Can you try a really simple flow: $100 charge, $10 app fee, partial capture for $50 but app fee $12

#

partial refunds is entirely expected that's how partial capture work

#

but I don't grasp why you think the app fee is prorated

#

(it might be, I just don't see that on my end)

opaque smelt
#

I can try that right now

#

I will say that in the paymentIntent object, everything looks fine

hasty bay
#

yeah I wonder if you're just thrown off by the Dashboard

#

like clearly you should see exactly how much you got overall

opaque smelt
#

I contacted someone else and they said this was intended behavior but didn't give me a way to solve it

#

"
What happened here was that the initial Payment Intent was created with an amount of $1,426.50. However, the captured amount was $1,376.50 ($50 less). When the amount captured on a Payment Intent is less than the amount that it was created with, a refund is created to make up the difference upon the Payment Intent's capture. You can see this displayed on this particular Payment Intent on the dashboard [1]. It is labeled "Partial refund" with a refunded amount of $50.00.

Since you are using Destination Charges [2], the platform is responsible for refunds, and "when creating charges with an application_fee_amount, the full charge amount is immediately transferred from the platform to the transfer_data[destination] account after the charge is captured" [3]. So, this is expected behavior. The full $1,426.50 is transferred to the Connected account, an application fee of $247.50 is collected by the platform, and the $50 refund (as a result of the under-capture) and all associated fees are subtracted from the Platform's balance. This fund flow can be viewed in your Dashboard here [4].
"

#

in case that's helpful for you

hasty bay
#

let's ignore all of that

#

I work way better with a simple, end to end, concrete example

opaque smelt
#

ok

#

pi_3LaRjyKOa3QjHUm81pdRFqyo

hasty bay
#

you never captured though

opaque smelt
#

now I did

#

and the volume in my stripe account actually went DOWN

#

By 40, to be exact

#
  • $50 refund
  • $2 fees
  • $12 fee

  • $40 total
#

sorry, the -2 was stripe fee and +12 was application fee

hasty bay
#

I'm sorry I absolutely don't follow you

#

did you get your $12 application fee or not?

opaque smelt
#

yes, but it was offset by the fact that I had to "cover" the refund of $50

#

i got $12 in application fee, lost $2 in stripe fees, and lost $50 because of the refund

#

and my balance went down

hasty bay
#

ah perfect okay

#

so the behaviour is totally normal

#

I assume you just didn't take an application fee big enough to cover our fee

opaque smelt
#

By our fee do you mean stripe

#

It’s not the stripe fee, it’s the fact that I have to “cover” the refund

#

The stripe fee is only a couple dollars but my balance decreased by 40

hasty bay
#

I'm sorry I keep being confused

#

I am trying but you are staring at something but only giving me pieces of it

#

Where is the lost money coming from?

#

There are many different pieces to a destination charge especially the way you do it with application fees. I can not make sense of what the problem you're having is