#just-john_code
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/1318614818521088071
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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
- The customerId that I want to send the payout to
- The fraction/percent they should recieve.
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
Hmm, this the opposite of what I was told before.
This is where I was told I don't need stripe connect. #1308203876230627329 message
The way to split subscription revenue with another account is using application_fee_percent on the subscription and specifying a destination account (you keep the percent fee):
https://docs.stripe.com/connect/subscriptions#use-destination-charges-to-create-a-subscription
You can optionally specify an application_fee_percent.
customerId was the incorrect terminology, my apologies. Stripe account ID.
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.
The post I linked says that it doesn't matter what method I use I will always be able to take an application fee.
I believe the only methods being discussed were stripe connect vs not.
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.
So if they already have a StripeId that isn't good enough? I can't send just money to other Stripe accounts if I have their info?
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.
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.
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?
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.
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?
Currently we are taking the money, and would need to pay the owners their share manually. We would like to automate that.
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.
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.
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.
Oh okay, I see what you're saying. I don't think that would work either actually, since I assume we'd need an API key from each of them to act on their behalf, and they're not that tech savvy, something like that would be way too much overhead.
Correct, it's not practical for the use case you describe. If you have a three party system you need to use Stripe Connect.
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?
Correct.
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?
No, go ahead and ask other questions here!
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.
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?
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.
Have a look at this page in our docs, which explains all of these choices and lets you play with different configurations: https://docs.stripe.com/connect/design-an-integration
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:
I think you can make changes to your original selections here: https://dashboard.stripe.com/settings/connect
I'm not sure exactly where in there, might be the Platform Profile toward the bottom.
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.
Yes, but what do I change it to?
Are you talking about this screenshot? #1318614818521088071 message
No. I want these options: #1318614818521088071 message
But it's not clear which one corresponds out of the actual options here: #1318614818521088071 message
Right, but that's where you change those selections. You need to go there and change the Account creation and Account management options there.
I understand that. The quesiton is what do I change them to?
Can you show me what it says when you press the edit button for those options?
The screen I showed is the edit screen. Here it is with expanded options.
Oh, maybe you need to change Funds flow first. What's shown when you edit that?
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?
Yes, it goes "Industry" "onboarding" "Where will sellers manage their account?"
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.
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?
Both, actually.
Haha. Okay.
๐
Okay. I guess that's it then.
Is this the right spot to ask?
Looks like I may need more permissions.
Ah, try reaching out here: https://support.stripe.com/contact
Looks like AI only, but maybe there's an option to get to a person after AI fails.
There should be, yep.