#vincent-red_best-practices

1 messages ¡ Page 1 of 1 (latest)

drifting solsticeBOT
#

👋 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/1308200844318998549

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

graceful plinth
#

Hi, let me help you with this.

#

Could you please share a bit more about your use case?
Will the same customer add all of the cards? Will you only charge your customers, or pay out funds to them too?

#

For your use case, from what I read, it seems like you need multiple Customers, each with their preferred PaymentMethod. And for each Customer you will create a separate PaymentIntent for each transaction.

I think from the Stripe side it will actually look like charging multiple separate customers. You will only make it seem like they're all splitting the same purchase in your own app.

soft sundial
#

@graceful plinth thanks for the response.

actually, it's 1 customer will enter multiple credit cards (that belongs to them) for 1 product. I assume I can save multiple credit cards after running /api/save-card, and attaching the paymentMethodId to the customerID via stripe.paymentMethods.attach? Also I'm curious how the processing the order works. Can I program Stripe to split the charges amount the cards with different amounts for 1 product in the order?

graceful plinth
#

/api/save-card
This is not a valid API method. Please follow the docs I shared.

drifting solsticeBOT
graceful plinth
#

Using SetupIntents will attach PaymentMethods to the Customer object automatically

graceful plinth