#michal_best-practices
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/1326996433924264047
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there! Based on what you're describing, it looks like you're using Connect with Direct Charges. Is that right? Typically, when working with multiple Connected Accounts in the same checkout, separate Charges & Transfers are easier to implement. If you're using Direct Charges with multiple vendors, is there a particular reason why you are against using a different charge type?
Here's a reference that explains the different Charge types:
https://docs.stripe.com/connect/charges
I am not opposed to using a different charge type if that is what is recommended, but it looks like creating a charge is deprecated as per https://docs.stripe.com/api/charges/create
Yeah, the namespacing is a little difficult here. The guide I linked doesn't refer to creating Charges directly, which is what is deprecated. That is to say, you'll still be using the PaymentIntents API.
If I create a payment intent on the back end, don't I still need to create a payment method on the front end to attach it? Which is linked the connected account that I use when I do loadStripe()? Therefore I can only do this with one vendor as stated previously no
Or am I missing something entirely
Sort of. The reason why I recommend Separate Charges & Transfers is because the payments happen on the platform account, and then you can transfer the funds to as many connected accounts as are necessary. So you would use your platform account to initialize Stripe.js and payment objects exist on the platform account.
Here's the direct link to the Separate Charges & Transfers guide: https://docs.stripe.com/connect/separate-charges-and-transfers?platform=web&ui=elements
Understood, thank you for your help.