#arshad.cm
1 messages · Page 1 of 1 (latest)
Hi 👋 if you want to include providing funds to a third-party as part of your payment flow within Stripe, then you will need to leverage Stripe Connect:
https://stripe.com/docs/connect
You will need to create Connected Accounts for your service providers and onboard them. Then when processing payments you can have the proceeds split between you (the Platform) and your Connected Accounts.
I have created express accounts for my service providers. So When a client requests a service, Currently I am creating a payment intent and accepting money to my dashboard only.
But I would like to know the best practices fir this.
Gotcha, so if you're working with Express Connected Accounts, we typically recommend using Destination Charges. Our guide for using that flow can be found here:
https://stripe.com/docs/connect/destination-charges
return await this.stripe.paymentIntents.create({
amount: amount * 100,
currency: 'usd',
customer,
capture_method: 'manual',
payment_method_types: ['card'],
payment_method: 'pm_card_visa',
application_fee_amount: 123,
transfer_data: {
destination: 'acct_1Nhsf3R9qstwqI5f',
}
});
So In this code The amount will be get credited to the connect account provided and the mentioned application fee will be in the application stripe account right?
Correct. The payment is processed on your Platform account, a Transfer is created to move funds from the payment to your Connected Account, but your Platform will retain the amount specified in application_fee_amount.
So having one doubt, That when I am doing the auth and capture the fund, When the 7 day validity comes, either charge created time or payment confirmed time?
Those are the same, the Charge object is created when the Payment Intent is confirmed.
Thanks for the verify