#michal_best-practices

1 messages ¡ Page 1 of 1 (latest)

hard thistleBOT
#

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

karmic bramble
#

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

zealous quail
karmic bramble
#

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.

zealous quail
#

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

karmic bramble
#

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

zealous quail
#

Understood, thank you for your help.