#gorleg

1 messages · Page 1 of 1 (latest)

gritty schoonerBOT
wraith bolt
#

Just to confirm - you're using application_fee_amount and not transfer_data[amount] , right?

prime ore
#

It looked from the documentation that we need to declare the service-providing user's account under on_behalf_of rather than as transfer_data[destination], which implied to me that we should be collecting our platform's fee via application_fee_amount. Is that correct?

#

We are happy to do whichever is the best flow here. We are more concerned with showing our service providers an accurate quote on our website (e.g. "you will receive <x> for this service")

#

(our service providers can be located anywhere in the world)

wraith bolt
#

Not quite - I'm talking about transfer_data[amount] , which should work seamlessly with on_behalf_of

prime ore
#

Oh, fantastic. I hadn't seen this in the documentation, my apologies. So to confirm, if we declare a payment intent where:

  • the service provider's Connect account is listed under the on_behalf_of attribute
  • their "cut" is described under transfer_data[amount]
    This will have the effect of them receiving the amount described, work globally, and have my application be responsible for paying any of stripe's fees?
wraith bolt
#

Yup!

#

But also just to clarify - whatyou have currently should be working as well

#

The fee should be coming out of the Application Fee, not from the connected account

prime ore
#

Will the stripe api throw an error if we charge an application fee that is less than stripes fee?

wraith bolt
#

I don't believe so, but let me double check

prime ore
wraith bolt
#

Hmm... give me a minute, I'm testing some things on my end and I think I see what you're talking about with the Stripe fee

#

Okay I was wrong earlier - I had thought the fees would be the same if on_behalf_of was used with application fees, but you were right. The fee is pulled from the connected account

#

But the transfer_data[amount] solution I mentioned should definitely work for you

prime ore
#

When I use the NodeJS SDK with transfer_data[amount], it also requires that I input the Connect user's account id as the transfer_data[destination] field. If I declare their account both in transfer_data[destination] and in on_behalf_of, will that work just fine? I can't tell from the docs if that is ok, or if that is me using payment intents in two conflicting flows.

wraith bolt
#

Yup it should work!

prime ore
#

great - i really appreciate all the help Karbi!

wraith bolt
#

happy to help!