#dbarbosa9657_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1250527257844514836
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Hi, I think you're likely looking for what we call a 'cloning a payment method', https://docs.stripe.com/payments/payment-methods/connect#cloning-payment-methods. You can collect the payment details once, and then can copy the same payment method details across all connected accounts. Here are the steps:
1/ Create the customer on the Platform Account
2/ Create the Payment Method on the Platform Account using SetupIntents by passing the customer id on the SetupIntents
4/ Create a Payment Method (via /v1/payment_methods endopoint) using the Stripe Account Header and by passing the above object ids both the customer id and the payment method id. It creates a new payment method id on the Connected Account
5/ Create a charge using that payment method from 4.
That is exactly what I currently do, but now I want to use Checkout on direct payment for the connected accounts. And it seems I can't refer a Customer from the Platform Account ? (no such customer)
๐ stepping in here
When you clone PaymentMethods, only the PaymentMethod object gets cloned, no the Customer object. So if you want to attach that PaymentMethod to a Customer on the Connected Account then you would create a Customer object on the Connected Account to mirror the one that is on your platform account.
That is what I was thinking BUT using exclusively Checkout, the paymentMethod is first created on The connected Account, I need then to duplicate it on the Platform Account to retrieve it for futur use (other connected accounts). This seems so wrong ๐ฆ
Yeah that isn't possible
You can only clone from Platform --> Connected Account
Not the other way around
Then how to :
Use checkout for connected accounts
And avoid the Customer to reenter its payment data when he purchase on another connected accounts (checkout again) ?
Only way to do this if you are going to use Checkout would be to use mode: setup on your platform and then clone to your Connected Accounts
That's what I currently do. But the problem is Apple Pay is no more available in setup mode..