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

Custom Account Creation Problem #590

Closed
kei42 opened this issue Jun 15, 2018 · 3 comments
Closed

Custom Account Creation Problem #590

kei42 opened this issue Jun 15, 2018 · 3 comments
Assignees

Comments

@kei42
Copy link

kei42 commented Jun 15, 2018

Hello,

I have an issue with the custom account creation, I got the following error:

2018/06/15 12:53:05 Error encountered from Stripe: {"status":400,"message":"Invalid string id: ","param":"account_token","request_id":"req_XXXXXXXXXXX","type":"invalid_request_error"}

here: https://github.com/stripe/stripe-go/blob/master/account.go
the line
AccountToken *string form:"account_token"
I think the account_token parameter should be renamed token
so it should be something like
Token *string form:"token"

Could you please handle it ?
Thanks

@remi-stripe
Copy link
Contributor

@kei42 You can see in the docs that this parameter is called account_token [here|https://stripe.com/docs/connect/account-tokens#use-token].

Can you give me a real request id req_XXXX so that I can double check what's causing the 400?

@remi-stripe remi-stripe self-assigned this Jun 15, 2018
@remi-stripe
Copy link
Contributor

remi-stripe commented Jun 15, 2018

@kei42 Okay looking into our logs I only see 2 failures from Go in the past 24 hours. Both sent account_token: "" so it's expected that you would get an error.

Your code seems to have a bug where you send an empty string for the id instead of the id you retrieved from your browser. Once you fix it and send the real id ct_XXXX you should be all set

@kei42
Copy link
Author

kei42 commented Jun 15, 2018

Ok thanks for your quick answer

nadaismail-stripe pushed a commit that referenced this issue Oct 18, 2024
Bumps [sorbet-rails](https://github.com/chanzuckerberg/sorbet-rails) from 0.7.33 to 0.7.34.
- [Release notes](https://github.com/chanzuckerberg/sorbet-rails/releases)
- [Commits](https://github.com/chanzuckerberg/sorbet-rails/commits)

---
updated-dependencies:
- dependency-name: sorbet-rails
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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