-
Notifications
You must be signed in to change notification settings - Fork 648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to add Both Individual and Company Params to AccountParams #7602
Comments
Hi @noushad-newagesmb The I'm closing this ticket because it's outside the scope of Stripe Mobile SDK. Feel free to re-open it or reach out again if you have any follow-up questions. |
While creating an account token, the account params accept either a CompanyParams or IndividualParams object only. Refer to the sample JSON structure below we need for creating a token:
To achieve this, we need to create AccountParams using both IndividualParams and CompanyParams. For creating AccountParams and generating a token, please refer to the provided code. If you have specific code that needs correction or improvement, feel free to share it.
|
Hi @noushad-newagesmb thanks for the example code and the additional context. Yes this is a limitation in Stripe Android SDK that you can't specify both The workaround here is to call the |
Summary
I am requesting support for adding both individual and company parameters to the AccountParams class in the Stripe Android SDK. Currently, it seems that creating an AccountParams instance with both sets of parameters is not straightforward, while this feature is available in the iOS SDK.
According to the latest update from Stripe, to verify information with the IRS, the legal name and tax ID are required. However, when using the Stripe Android SDK, it's currently not possible to include both company parameters and individual parameters in a single AccountParams object.
The create function in AccountParams accepts either individual or company parameters. There are no errors during token creation, and the test logs indicate successful requests. However, the callback returns a pending status with the name and tax ID pending, as they are not included in the token, leading to a pending status in connected account creation. The following structure is required for creating an account token
Code to reproduce
Android version
Impacted devices
Installation method
Dependency Versions
kotlin: 1.9.0
stripe-android: 20.34.4
Android Gradle Plugin: 8.0
Gradle: 8.0.2
SDK classes
Video
Other information
Tasks
The text was updated successfully, but these errors were encountered: