Skip to content
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

Received unknown parameter: account[legal_entity] #821

Closed
rafikmechria opened this issue Mar 3, 2019 · 8 comments
Closed

Received unknown parameter: account[legal_entity] #821

rafikmechria opened this issue Mar 3, 2019 · 8 comments
Assignees

Comments

@rafikmechria
Copy link

Summary

I am using the new api version of stripe :2019-02-19 last version on the platform.
there is a bug or missing development stuff in stripe-android integration when calling this method :
Token token= stripe.createAccountTokenSynchronous(AccountParams.createAccountParams(true,LegalEntityMap)) 
The method keep returning :
Received unknown parameter: account[legal_entity] 

Since you removed the legal_entity parameter from your new api and updated with individual parameter , normally you should update that too in the stripe android SDK integration.
Please respond, thanks.

Code to reproduce

Android version

Impacted devices

Installation method

SDK version

Other information

@mshafrir-stripe mshafrir-stripe self-assigned this Mar 4, 2019
@mshafrir-stripe
Copy link
Collaborator

@rafikmechria thanks for filing. I'm able to reproduce the issue and will put up a fix shortly.

mshafrir-stripe added a commit that referenced this issue Mar 4, 2019
**Summary**
- Create `ApiVersion` class to represent a Stripe API version
- Overload `Stripe#createAccountTokenSynchronous` methods that
  accept `ApiVersion` argument
- Update `AccountParams` to support `individual` and `company`
  business types
- Add tests for `2019-02-19` API changes to the Account API

**Motivation**
Fixes #821
@mshafrir-stripe
Copy link
Collaborator

@rafikmechria I put up a fix (#822). Feel free to test it and see if it resolves your issue.

mshafrir-stripe added a commit that referenced this issue Mar 4, 2019
**Summary**
- Create `ApiVersion` class to represent a Stripe API version
- Overload `Stripe#createAccountTokenSynchronous` methods that
  accept `ApiVersion` argument
- Update `AccountParams` to support `individual` and `company`
  business types
- Add tests for `2019-02-19` API changes to the Account API

**Motivation**
Fixes #821
@mshafrir-stripe
Copy link
Collaborator

@rafikmechria in the mean time, are you still able to roll back to a previous version? You have 72 hours to roll back.

@rafikmechria
Copy link
Author

Why you don't just release a new sdk update ?

@mshafrir-stripe
Copy link
Collaborator

@rafikmechria I can do that once the PR merges and we go through our release procedures. It was a suggestion in case this is a blocking issue and roll back is still a viable option.

@rafikmechria
Copy link
Author

My stripe account is new and points me directly to the new version, How do they remove legal entity parameters in the api without preparing an update for the sdks(Android,ios js)??

mshafrir-stripe added a commit that referenced this issue Mar 4, 2019
**Summary**
- Create `ApiVersion` class to represent a Stripe API version
- Overload `Stripe#createAccountTokenSynchronous` methods that
  accept `ApiVersion` argument
- Update `AccountParams` to support `individual` and `company`
  business types
- Add tests for `2019-02-19` API changes to the Account API

**Motivation**
Fixes #821
mshafrir-stripe added a commit that referenced this issue Mar 4, 2019
**Summary**
- Create `ApiVersion` class to represent a Stripe API version
- Overload `Stripe#createAccountTokenSynchronous` methods that
  accept `ApiVersion` argument
- Update `AccountParams` to support `individual` and `company`
  business types
- Add tests for `2019-02-19` API changes to the Account API

**Motivation**
Fixes #821
@mshafrir-stripe
Copy link
Collaborator

@rafikmechria I just released stripe-android:8.5.0 with support for the Account API changes. It should take some propagate so it may be several hours before it's available to you. The latest version is also pinned to API version 2017-06-05, but the changes to the params will work on that version as well.

@rafikmechria
Copy link
Author

alright , thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants