#just-john_code

1 messages ยท Page 1 of 1 (latest)

vapid nightBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

pulsar jackal
#

Here is the code for my setup intent if that's relevant:

paymentRouter.post(
  '/create-setup-intent',
  async (req: Request, res: Response): Promise<void> => {
    const { customerId } = req.body;
    let intent: Stripe.SetupIntent;

    try {
      intent = await stripe.setupIntents.create({
        customer: customerId, // Needed to allow saving and retrieving payment methods
        automatic_payment_methods: {
          // Supposedly enabled by default but breaks if not set here
          enabled: true,
        },
      });
    } catch (e) {
        ...
    }
    res.send({
      clientSecret: intent.client_secret,
    });
  },
);
#

This is all working correctly in test mode with us taking 100% of the payment, I just need to know how to send payouts. Specifically, where to send

  1. The customerId that I want to send the payout to
  2. The fraction/percent they should recieve.
snow merlin
#

When setting up a SubscriptionSchedule, how do I direct a portion of the payment to my account and the rest to another account (without using Stripe Connect)?
What you're asking sounds impossible. The only way to split payment with another account/provider is using Connect.

#

The customerId that I want to send the payout to
You cannot send Payouts to customers, only to conencted accounts

pulsar jackal
#

Hmm, this the opposite of what I was told before.

snow merlin
#

You can optionally specify an application_fee_percent.

pulsar jackal
snow merlin
#

That previous discussion was saying accounts are not needed for the buyer/customer, which is correct.

#

But connected accounts are needed for providers/sellers, in order to transfer & pay out funds.

pulsar jackal
#

I believe the only methods being discussed were stripe connect vs not.

snow merlin
#

It looks like that was referring to the discussion of which onboarding approach to use, hosted vs API

#

There is no way to send funds out to other people outside of Connect

#

Those recipients need to be onboarded, including identity verification/KYC etc, then you can do payouts for them.

vapid nightBOT
pulsar jackal
devout chasm
#

Hello! I'm taking over and catching up...

#

Can you clarify what you mean by StripeId? Are you talking about a Customer ID?

#

If so, that won't work. Customers can only pay you money, they can't receive funds. You do indeed need to use Connect for the use case described above, and all of the recipients of funds need their own Stripe account.

pulsar jackal
#

Okay, maybe I should provide a little more context. We have two user types, customer (renters) and sellers more or less (the owners/landlords).

#

We are programatically creating customer objects (but not "accounts" as I understand the term) for the renters.
For the owners, some already have stripe accounts and some will create their account (or we will "onboard", but keeping the experience in app is not important right now).

#

In the subscription we are charging the customer and would like to add code to also send a payment to the owner.

devout chasm
#

If those were the only two parties involved that would work fine without Connect, but as I understand it there's a third party involved (you) and you want to take a fee for facilitating the transaction between the renters and landlords, correct?

pulsar jackal
#

Correct. But could you explain how it would work to send 100% of the money to the owner? If there is a way to do that I don't see how we couldn't just use that method along with what we are currently doing and send less than 100% to the owner.

devout chasm
#

Not sure I understand. Can you provide more context about what you're currently doing and why specifying a smaller amount would be the path forward?

pulsar jackal
#

Currently we are taking the money, and would need to pay the owners their share manually. We would like to automate that.

devout chasm
#

Going back to your original question:

When setting up a SubscriptionSchedule, how do I direct a portion of the payment to my account and the rest to another account (without using Stripe Connect)?

I want to be as clear as I can here: this is not possible without Connect, period.

#

This is exactly the use case Connect was designed for.

pulsar jackal
#

Specifying a smaller amount is not in contrast to what we are currently doing, it is in contrast to sending 100% to a different stripe account because you said that is possible.

devout chasm
#

What I meant is that if only two parties were involved (renters and landlords) and you were not involved at all that would not require Connect. The landlord would have a Stripe account and they would charge the renters directly without another party involved.

pulsar jackal
devout chasm
#

Correct, it's not practical for the use case you describe. If you have a three party system you need to use Stripe Connect.

pulsar jackal
#

But it makes more sense now that I understand what you were saying.

#

So to confirm my original second question: it is not possible to just send money to another stripeId without Connect. Correct?

devout chasm
#

Correct.

pulsar jackal
#

Okay thanks!

#

In that case I believe I also need my original questions in the other thread answered. However, that is technically a different subject.

#

Should I open a different support thread?

devout chasm
#

No, go ahead and ask other questions here!

pulsar jackal
#

Okay, bear with me as I have not looked at the options in quite some time.

#

We originally selected these options:

#

And then what I was wondering last time:

#

but after reading more I am thinking that API onboarding may be needed, which changes the other options. Also not sure if I need "destination" to take a cut of the payments or if "direct" will suffice.

devout chasm
#

For your second question, your platform can take a cut of the payments with either direct or destination charges.

#

For your first question, why do you think that API onboarding may be needed?

pulsar jackal
#

I'm trying to log back in right now to refamiliarize myself with the options. Please give me a few minutes, I was not expecting to need to set this up.

#

Okay, when I went back in I got this screen instead.

#

These options look correct, but less specific than the ones above. I am not sure how all of them correspond.

devout chasm
pulsar jackal
#

Okay. The option I would like for account management is "stripe" in the docs

#

Where I don't need to embedd anything (other than maybe a link) in my app.

#

However, the options are different than the docs:

devout chasm
#

I'm not sure exactly where in there, might be the Platform Profile toward the bottom.

pulsar jackal
#

That only allows viewing the settings. I need to change the settings to match my screenshot of the docs.

#

I found the place to do that, but it is the second screenshot, and it is not clear which option matches the "stripe" option in the docs.

devout chasm
#

The Express Dashboard is what you need to change.

#

Wait...

pulsar jackal
#

Yes, but what do I change it to?

devout chasm
pulsar jackal
devout chasm
#

Right, but that's where you change those selections. You need to go there and change the Account creation and Account management options there.

pulsar jackal
#

I understand that. The quesiton is what do I change them to?

devout chasm
#

Can you show me what it says when you press the edit button for those options?

pulsar jackal
#

The screen I showed is the edit screen. Here it is with expanded options.

devout chasm
#

Oh, maybe you need to change Funds flow first. What's shown when you edit that?

pulsar jackal
#

I am certain that that option is correct.

devout chasm
#

Hm, I expected that to allow you to change from destination to direct charges. Maybe it's on the next screen?

#

Are there more options if you press Continue?

pulsar jackal
#

Yes, it goes "Industry" "onboarding" "Where will sellers manage their account?"

devout chasm
#

Hm. You might need to reach out to Stripe support for help with this, we don't know a lot about how the Dashboard works here. We're more focused on the API and how you can specify these options in code when you create connected accounts.

pulsar jackal
#

Hmm, okay.

#

So to make sure I understand what you're thinking:
Is it that you don't know which of the account management options corresponds to the "stripe" option in the docs?
Or is it that you think there should be another option there that is missing?

devout chasm
#

Both, actually.

pulsar jackal
#

Haha. Okay.

devout chasm
#

๐Ÿ˜…

pulsar jackal
#

Okay. I guess that's it then.

#

Is this the right spot to ask?

#

Looks like I may need more permissions.

devout chasm
pulsar jackal
#

Looks like AI only, but maybe there's an option to get to a person after AI fails.

devout chasm
#

There should be, yep.