#arun_api

1 messages ¡ Page 1 of 1 (latest)

abstract blazeBOT
#

👋 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.

shell cedar
#

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

Build a multiparty integration.

night cairn
#

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.

shell cedar
#

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

night cairn
#

or if vendor have already account id?

shell cedar
#

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

night cairn
#

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

shell cedar
#

What type of connected account do you use? Standard, Express, Custom or using controller config?

night cairn
#

standard

shell cedar
night cairn
#

if account type "Express"

shell cedar
#

You should create the connected account type that meet your business requirement: https://docs.stripe.com/connect/accounts

In general,

Learn about older connected account configurations.

Create charges directly on the connected account and collect fees.

Create charges on your platform account, collect fees, and immediately transfer the remaining funds to your connected accounts.

night cairn
#

i have one doubt

#

first i have to connect vendor stripe account id to my stripe id?

shell cedar
#

No. You should create a new Stripe connected account for your vendor

#

This will have a new connected account ID

night cairn
#

Thank you