#r3s_connect-funds-flows
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1241077141559578644
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
I want to get the value of the "0.59USD" stripe fee on this graph
const fee = Math.floor(feePercentage * priceRound);
const session = await stripe.checkout.sessions.create({
line_items: [
{
price_data: {
currency: 'eur',
product_data: {
name: title,
images: thumb ? [thumb] : []
},
unit_amount: priceRound * 100 + fee
},
quantity: 1,
adjustable_quantity: {
enabled: false
}
}
],
payment_intent_data: {
application_fee_amount: fee,
on_behalf_of: connected?.id,
transfer_data: {
destination: connected?.id,
}
},
mode: 'payment',
ui_mode: 'embedded',
return_url: `${origin}/media`,
// success_url: `${origin}/stripeSuccess`,
// cancel_url: `${origin}/stripeCancel`,
billing_address_collection: 'required',
client_reference_id,
customer: stripeCustomer?.id
});
Which funds flow are you following? Are you creating these checkout sessions using the Stripe Account header? Or are you specifying a transfer destination?
These checkouts use a transfer destination
Okay. SInce the platform is the one who pays the Stripe Fee out of your application fee, you want to add that to the application fee you charge your connected accounts?
Wait so if I understand what you're saying
Customer pays 100 USD -->
Application fee is 10USD, goes to My company's Stripe Balance, my company's balance pays Stripe Fees
Stripe Connect User gets 90 USD on its connect balance
Which means if the stripe fee was to be 15 USD my company loses 5 USD correct?
And if it's 1 USD we end up with
Customer pays 100USD
Connect User ends up with 90 USD
My Platform ends up with 10 -1 = 9USD
I'm not sure where you are getting your math but we're not experts on Stripe fees here. We focus on coding API integrations.
But this is the funds flow I am referring to: https://docs.stripe.com/connect/destination-charges?platform=web&ui=elements&fee-type=application-fee#flow-of-funds-app-fee
Oh yes makes sense exactly
I was scared that it would be something like so
Product price is 100USD
Platform fee is 10USD
Stripe fee is 5 USD
So in the end we would get
Customer: -100USD
Connect user: + 85 USD
Platform: +10USD
But like you showed me it's actually
Customer: -100USD
Connect user: + 90 USD
Platform: + 5 USD
Perfect I understand it now
Great! Connect funds flows are kind of complicated and there are many different options so it's easy to get confused.
Yeah, the doc is huge I was kinda lost tbh but this cleared up the waters
Great ๐ Happy to help ๐