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

Allow null API key in StripeClient #1680

Merged
merged 1 commit into from Jun 26, 2019

Conversation

ob-stripe
Copy link
Contributor

r? @brandur-stripe
cc @stripe/api-libraries-releasers

Don't enforce an API key when creating StripeClient, so that users can create clients without API keys and pass the key only via RequestOptions on a per-request basis.

We still check for empty strings or whitespace, and we do check that an API key was provided (either by RequestOptions or by the client) when creating an actual API request.

Fixes #1650.

Copy link
Contributor

@brandur-stripe brandur-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome job as usual OB. Thanks a lot for fixing!

@ob-stripe
Copy link
Contributor Author

Thanks Brandur!

@ob-stripe ob-stripe merged commit d627a0e into master Jun 26, 2019
@ob-stripe ob-stripe deleted the ob-allow-null-api-key-in-clients branch June 26, 2019 20:22
@ob-stripe
Copy link
Contributor Author

Released as 27.4.0.

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

Successfully merging this pull request may close these issues.

API Key error on stripe terminal
3 participants