#JLuis-Connect

1 messages · Page 1 of 1 (latest)

wicked fiber
#

Hello, can you elaborate? What API are you using and what error have you received?

twin folio
#

thanks orakaro

#

first that all, I created a connect account and added the others accounts

#

I can already see the accounts connected to each other

#

then

#

using the secret api key of platform account.

#

then I tried to create a paymentIntent trying to add the customer param but I get "No such customer: 'customerId'"

wicked fiber
#

Hi, that guide is a bit old and isn't tailored to PaymentIntent... You mentioned you have completed Step 1, right?

twin folio
#

yes

#

i completed

wicked fiber
#

In its flow, you would need to create Customer/PaymentMethod on Platform, then clone to Connected Account then create PaymentIntent on Connected Account, using the cloned Customer and PaymentMethod

twin folio
#

can you indicate to me the link or something related to the documentation of this part, please ?

#

ok, I understand, but, I do not now how to clone the customer to the connected account.

#

I am going to make a zoom in the first step that you wrote.

#

For create an user I am using the platform secret api key and fill email, name parameters

#

it is necessary specify also this object:
var requestOptions = new RequestOptions();
requestOptions.StripeAccount = "acct_1JgsmRFf13vCVNh9";

and pass as second parameter: Customer customer = service.Create(options, requestOptions);

#

?

wicked fiber
#

No you don't specify that StripeAccount. That's the Stripe Account header to create objects on behalf of that account

#

You are talking about step 1 right? Just create a normal Customer on your Platform

twin folio
#

test, in the step 1.

#

ok, done, I have already created the client on the platform, for this I just have to create it using the platform's private key, right?

wicked fiber
#
  • secret key, yes
twin folio
#

yes, secret key. ok.

#

in step two is where I have the doubt, how can I clone that customer into the other accounts?

wicked fiber
#

Step 2 in the doc saying you need to clone the Token, and the Customer to Connected Account. However I recommend to create a PaymentMethod on Platform, and clone that PaymentMethod + Customer to Connected account instead

twin folio
#

ok, we are very close ! !

#

"and clone that PaymentMethod + Customer to Connected account instead" is clear for me.

#

"create a PaymentMethod on Platform" is missing, how can i create this part in my client ? I am using android.

wicked fiber
#

Um, on your integration with android, you may already created it. Do you have any PaymentMethod with id pm_xxx ?

twin folio
#

yes, wait for me please.

#

I am trying ...

grim totemBOT
#

This thread has been archived. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact