#andrei4002-iOS-external-accounts
1 messages · Page 1 of 1 (latest)
Hey, apologies for the delay. Looking in to this and will get back with what we can find
Hi there 👋 I'm stepping in for Pompey and getting caught up here. Bank accounts should be a bit more straightforward as you can pass those details directly rather than needing to start from a token. Cards are a little trickier as you'll need to use a token first, and I'm looking into the best path for this. Please bear with me while I dig into this.
for cards i'm currently using the STPPaymentCardTextField.Representable textfield from the SDK, but only for setup intents and payment intents. I don't know yet if this can be used in the stripe account/external accounts context
Sincere apologies for the delay, I believe the methods you're looking for (for creating tokens) are:
card - https://stripe.dev/stripe-ios/docs/Extensions/STPAPIClient.html#/s:10StripeCore12STPAPIClientC0A0E11createToken8withCard10completionyAD13STPCardParamsC_yAD8STPTokenCSg_s5Error_pSgtctF
bank - https://stripe.dev/stripe-ios/docs/Extensions/STPAPIClient.html#/s:10StripeCore12STPAPIClientC0A0E11createToken15withBankAccount10completionyAD07STPBankH6ParamsC_yAD8STPTokenCSg_s5Error_pSgtctF
Then you'd be able to use these tokens to create the external accounts.
thanks! i think i can start from here. was also looking over the STPBankAccount object for what info i need to provide in order to create it. does the SDK provide any form of validation of what fields are required depending on country or other factors? or this is something i need to implement myself?