#lukakhr_code
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/1217877916428402799
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello, we do still support cloning. Here is the modern doc for it: https://docs.stripe.com/payments/payment-methods/connect
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
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?
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
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?
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
How would I get the payment method in react-native? I don't think the payment sheet has that capability
If the customer already has it saved we have the customer sheet https://docs.stripe.com/elements/customer-sheet
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
If they don't have the payment method saved, this would be a normal setup intent confirm via the payment sheet https://docs.stripe.com/payments/save-and-reuse