v4.0.0 `idempotency_key` parameter unknown
newenegue opened this issue · 3 comments
Describe the bug
Any of our requests to POST /v1/subscriptions
, POST /v1/invoices
and POST /v1/customers/:id
are failing with Received unknown parameter: idempotency_key
To Reproduce
Make a request to create a customer and include the idempotency_key
parameter
stripe.Customer.create(
name="John Doe",
email=email,
idempotency_key="test-key-12345",
)
Expected behavior
idempotency_key
is an accepted parameter
Code snippets
No response
OS
macOS
Language version
Python 3.7.3
Library version
stripe-python v4.0.0
API version
2019-05-16
Additional context
No response
@newenegue thanks a lot for the report. There is definitely something wrong where some API methods don't handle options like idempotency_key
and api_key
properly but others do. We're investigating but for now you should roll back to the previous major.
@remi-stripe thanks for the response! We've rolled back to v3.5.0 and everything is working as expected.
We have just released version 4.0.1 of the package which has the fix for this issue. Rolling back to previous major is no longer necessary.