#Gavin Phung

1 messages Β· Page 1 of 1 (latest)

proper notchBOT
hexed marsh
magic forge
#

req_3m75BPP98Mmol4

hexed marsh
#

Can you share you're trying to do?

magic forge
#

i create customer for Platform account

#

and clone this customer to connect account

#

when clone customer i got error api /v1/tokens

#

😩

hexed marsh
#

To clone a source from platform to connected account, you may refer to the doc here: https://stripe.com/docs/sources/connect#cloning-card-sources

Basically, the steps will be:

  1. Clone the payment method to the connected account
  2. Attach the connected account's payment method in Step 1 to the connected account customer using Stripe-Account header
#

Cloning is only supported on card source and payment method. Customer cloning is not supported.

magic forge
#

no i stuck clone Customer

#

i get an error when i call api /v1/tokens

hexed marsh
#

Cloning customer is not supported from platform to connected account

magic forge
#

in test mode

#

i clone success

hexed marsh
#

Can you share the successful request?

#

/v1/tokens is to clone token (the card) on the connected account, not cloning customer

#

If you have card source on the customer, /v1/tokens will clone it to the connected account

magic forge
#

this is the flow i do when creating customer of connect account from customer of platform account

#

can u help me check it

#

i follow this doc

hexed marsh
#

The title of this doc is misleading. The description is clearer that:

With Connect, you can clone your customers' payment information across multiple connected accounts for reuse.

This doc is for cloning the card source (src_xxx) from platform to connected account, not customer. Step 2 (/v1/tokens) is to create a card token in the connected account from the platform's customer's card source.

The reason why req_3m75BPP98Mmol4 is not working because cus_MqpvQpHkAXNpHR doesn't have a card source (src_xxx). It only has payment method (pm_xxx).

Your previous successful attempt of cloning card source was likely because there was card source present on the platform customer.

magic forge
#

yes i understand πŸ™

#

Thanks for support 😍

hexed marsh
#

No problem! Happy to help πŸ˜„