#_nerder

1 messages · Page 1 of 1 (latest)

brisk yarrowBOT
bright wraith
boreal rover
#

The first one (via tokens) is just our legacy flow to achieve the same thing basically

#

You use payment methods in your integration I assume (pm_123 ID's)?

bright wraith
#

Yes

#

So ok, the first article is just deprecated

boreal rover
#

Unless your integration is still using tokens

bright wraith
#

But the advantage of the first is that it also create the customer in one go right?

boreal rover
#

But sounds like you have our latest recommended flow

bright wraith
#

Nono I'm building it from scratch now

boreal rover
#

Use payment methods then

bright wraith
#

But my understanding is that the customer need to be there (in the connected account) before I order to create the setup intent right?

#

I mean the customer id in the payment_method.create call is from the connected account not the platform right?

boreal rover
#

No that's from the platform

bright wraith
#

Oooh!

#

That will be cloned automatically then?

#

Customer and Payment method?

boreal rover
#

It should from what I rememeber. Recommend giving it a go in test mode

bright wraith
#

Yep, I also need to check what happens when i create more then one customer with the same Id then

boreal rover
#

What do you mean?

bright wraith
#

No actually never mind

#

My understanding is that when I call payment_method.create with the customerId and payment method Id of the platform this will create a new customer (with a new id) and a new payment method (with a new id) under the connected account

boreal rover
#

Yeah I think that's right

#

I can't remember if the customer has same id though

#

Recommend trying it in test mode to see how it behaves