#lukakhr_code

1 messages ¡ Page 1 of 1 (latest)

lilac gustBOT
#

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

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

sinful creekBOT
glossy cloak
#

Tokens are the legacy flow, with this one you can use a PM on your platform account to directly create that PM on the connected account

heady silo
#

And what if I don't have a payment method yet? As this is a mobile application, I am using the react native stripe depencency so I am not collecting the information but rather only showing the PaymentSheet and STripe handles the rest?

glossy cloak
#

You will need to collect the payment method on your platform account

#

After the PM has been saved to a customer on your platform, you can clone it down to your connected accounts

heady silo
#

Aha, so after payment has been completed, I should save the payment method to my platform account manually and then on the next payment attempt, clone that payment method to a connected account. My connected accounts than wouldn't have any customers and I wouldn't be passing the "customer" parameter to paymentIntent.create ?

#

For ephermalKey creation, I would use the customer id from platform account?

glossy cloak
#

Not quite

#

Before taking the payment at all you need the payment method to be saved on your platform account. Then you can clone the payment method down and make the payment on the connected account

#

Cloning only goes one way, so if you make the payment first on the connected account, you can't get it on the platform account without recollecting the PM info

heady silo
#

How would I get the payment method in react-native? I don't think the payment sheet has that capability

lilac gustBOT
glossy cloak
#

So you could use that for the customer on your platform, get the ID they select, and then copy that down to the connected account