#r3s_connect-funds-flows

1 messages ยท Page 1 of 1 (latest)

finite fulcrumBOT
#

๐Ÿ‘‹ 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.

uncut whale
#

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
  });
delicate night
#

Which funds flow are you following? Are you creating these checkout sessions using the Stripe Account header? Or are you specifying a transfer destination?

uncut whale
#

These checkouts use a transfer destination

delicate night
#

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?

uncut whale
#

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

delicate night
uncut whale
#

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

delicate night
#

Great! Connect funds flows are kind of complicated and there are many different options so it's easy to get confused.

uncut whale
#

Yeah, the doc is huge I was kinda lost tbh but this cleared up the waters

delicate night
#

Great ๐ŸŽ‰ Happy to help ๐Ÿ™‚