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

api_key param no longer passed to nested objects? #611

Closed
therefromhere opened this issue Sep 11, 2019 · 2 comments · Fixed by #612
Closed

api_key param no longer passed to nested objects? #611

therefromhere opened this issue Sep 11, 2019 · 2 comments · Fixed by #612

Comments

@therefromhere
Copy link

therefromhere commented Sep 11, 2019

Hi, I'm hitting an issue with 2.36.0, it seems that the api_key param isn't passed to Customer.sources (and presumably other nested objects?).

Eg, this works with 2.35.1:

c = stripe.Customer.retrieve(id="cus_xxxx", api_key="sk_test_123") 
c.sources.create(source="tok_visa")

But fails with 2.36.0

AuthenticationError: No API key provided. (HINT: set your API key using "stripe.api_key = <API-KEY>"). You can generate API keys from the Stripe web interface.  See https://stripe.com/api for details, or email [email protected] if you have any questions.
@ob-stripe
Copy link
Contributor

Thanks for the report @therefromhere. You're correct, this is a regression caused by #610. We'll have a fix out shortly. Sorry for the inconvenience!

@ob-stripe
Copy link
Contributor

Fixed in 2.36.1.

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

Successfully merging a pull request may close this issue.

2 participants