#Aliciant
1 messages · Page 1 of 1 (latest)
Have you double checked that the customer exists on the same account that you are trying to make this request from?
The customer exists on the connected account
should i be using the customer id from the platform account?
the customer exists on both accounts, but different ids
You should use the ID from the account that you are making the call with. Are you trying to make this call as the platform or connected account?
I want to clone a payment from the platform account to the connected account. If I understood the docs correctly, I need to create the payment method on the platform account and then clone it to the connected account.
So I am making the call as the platform account, and transferring that payment method to the connected account.
But please correct me if I have understood that wrong
Gotcha. So that last call to clone the payment method happens on the connected account (because it uses the Stripe-Account header) so you will want to use the customer's ID from the connected account https://stripe.com/docs/payments/payment-methods/connect#cloning-payment-methods
Right, that's what I did. And for some reason, I keep getting the error that the customer doesn't exist
Can you send me the request ID from a time that you got this error? (req_123)
req_KuYEXBaXKB11mD
My apologies, I was exactly wrong. This should be the platform's customer ID. That call will create a payment method that isn't attached to any customer on the connected account. You can make an API call to attach the payment method to the connected account's customer after the first call succeeds. https://stripe.com/docs/api/payment_methods/attach
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
oooh. I see - so I need to create the payment method on the connected account, and THEN attach the payment method to the customer account on the connected account.