#Sanjeev Sundaravarathan
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Taking a look
Hi,
I created a payment method to the platform and when trying to add to customer like this getting the above error
Ah, so you're following this flow correct?
https://stripe.com/docs/payments/payment-methods/connect#cloning-payment-methods
yes, thats right
huh interesting, request params seems to be fine. Let me ask a colleague to take a look...
sure, thanks
๐ stepping in
So when you clone here you pass the platform's Customer ID
Then on the Connected Account you attach the newly created PaymentMethod to a new Customer on that account if you want to save it for future use
You don't pass the Customer on the Connected Account on creation
so the main reason we are doing this is to on a ongoing subscription if the customer wants to change the pm then UI will create that payment method on our platform and sends the PM_id to api where it adds it to subscription and the customer in that subscri[tion
Sure you are trying to clone from your platform to Connected Account
So steps are:
1/ tokenize PM and attach to a Customer on platform
2/ create PM on Connected Account by passing the PM ID and Customer ID from your platform
3/ attach newly created PM on Connected Account to a Customer on Connected Account
sorry but is there a way we can do it without connecting the customer to platform please?
because we dont want to connect the subscription customer to platform
Sure then you just tokenize directly on the Connected Account
Or you can clone without a Customer on the platform
Though that is just an extra step really from tokenizing directly on the Connected Account and is mostly unnecessary if you aren't storing the PMs on the platform
No, sorry with the current flow is there any way, where ui connects the PM to platform, and then api adding to customer who is not connected platform ?
Yes
Just remove the Customer ID from the request that you performed above
That will create a new PaymentMethod on the Connected Account
Then you attach to a Customer on the Connected Account
sure, I will try that now and let you know
Sounds good
Hey, thanks this worked
๐