#arun_api
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/1314101747027017799
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
This sounds like a platform managing the money movement between multiple parties. In this case, I'd recommend checking Connect: https://docs.stripe.com/connect
At the high level, you will create a connected account for your vendor and have them completing the onboarding. After that, you will then able to process the payment for them
Okay, Thank you
First, I will need to create an account on Stripe. After that, I will need to create a vendor account through the API. Then, I will need to onboard the vendor. From there, we will get the account.id, which will then need to be passed from the user side.
When you as a platform creates the connected account, the account ID will be available immediately. Only upon the vendor completes the onboarding, the connected account ID can then be used to process the payments
or if vendor have already account id?
You as the platform should manage whether the vendor has created a connected account with you previously. If they have created a connected account with you before, you shouldn't need to create a new connected account
could you confirm is that correct?
"const paymentIntent = await stripe.paymentIntents.create({
amount: 5000, // Total amount in cents ($50.00)
currency: 'usd',
payment_method: 'pm_card_visa', // Replace with the actual Payment Method ID
confirm: true, // Confirm the payment immediately
transfer_data: {
destination: 'acct_1ABCDEFGHI', // Use the vendor's existing Stripe Account ID
amount: 4500, // Vendor's share after deducting platform fees
},
application_fee_amount: 500, // Platform fee in cents ($5.00)
});
console.log(Payment Intent Created: ${paymentIntent.id});
"
and could you provide me how we can do in flutter
What type of connected account do you use? Standard, Express, Custom or using controller config?
standard
For Standard connected account, you should use Direct Charge instead: https://docs.stripe.com/connect/direct-charges
if account type "Express"
You should create the connected account type that meet your business requirement: https://docs.stripe.com/connect/accounts
In general,
- Direct Charges should be used for Standard connected account: https://docs.stripe.com/connect/direct-charges
- Destination Charges should be used for Express / Custom connected account: https://stripe.com/docs/connect/destination-charges
No. You should create a new Stripe connected account for your vendor
This will have a new connected account ID
Thank you