#ARRcade-debitcard

1 messages ยท Page 1 of 1 (latest)

drifting temple
#

Wow, thanks for getting back to me so quickly! So...I'm the backend guy here-- how similar is this to the flow for capturing card data for a customer account? Do I need to send any ephemeral keys or anything like that to the frontend guy for him to be able to call this?

rapid eagle
drifting temple
#

Right, so we've done all that and gotten it working for the customer accounts. My question is now turning to connect accounts. There doesn't seem to be a similar example in the docs of the back-and-forth flow for adding an external account to a connected account like there is in creating that paymentIntent on the customer account side. So I suppose what I'm really asking is this: can the iOS SDK take in the card info and generate the token with the function you linked to, and then send the token to the backend to attach to a connect account using the API?

#

Is that all there is to it?

real bear
#

Hi @drifting temple why you do you want to create a token from iOS app instead of from backend?

drifting temple
#

Hi Jack, I'm trying to avoid having the card info touch my backend so that I don't have to worry about PCI compliance.

#

We were able to follow the documentation to accomplish that when capturing customer cards, but I would like to do the same with custom connect external account debit cards. Does that make sense?

real bear
#

Ah I see, thanks for the background.

#

You don't need to use the customer ephemeral key here, because you are not attaching the card to a customer.

drifting temple
#

Ok awesome. So then the function that @rapid eagle linked would be the one to do that?

real bear
#

Yes you are right, and don't forget to initialise the iOS SDK with the Stripe-Account , so that the card token will be created on the connected account.

drifting temple
#

Ok, would that be initialized with the platform account, or the connected account?

real bear
#

So you still use the platform's publishable key, and you just need to set stripeAccount to the connecte account ID

drifting temple
#

Ok. So my frontend guy has to do this to set that?

real bear
#

Yup you are right ๐Ÿ™‚

drifting temple
#

Awesome.

#

Dude thank you so much.

#

We will try this out!

real bear
#

Sure, let me know if you need any help.