-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
Removal of Order
in version 5.0.0 of stripe Python package
#1842
Comments
Oh goodie. |
@kavdev I wish it better news 😆 😭 |
Anyone encountering this problem can pin stripe-python at Also hey @kavdev lol fancy seeing you here |
Thanks for raising this. I just ran into this error integrating dj-stripe into my django app for the first time.
For now I'm correcting by restricting stripe package vers in requirements.txt:
|
@digitalWestie would recommend modifying to the following so you don't get failure if stripe updates to 5.0.1 etc
|
@jacklinke yeah good idea |
Small world! |
@arnav13081994 @jleclanche I think constraining the python sdk version as a hotfix and then starting a deprecation path for Orders is the move here. Thoughts? Our contacts at Stripe said it got dropped after beta and didn't make it to a GA release. Seems safe to remove? Idk what the replacement abstraction is in the API |
First time user of Stripe, spent hours trying figure out why I kept getting |
Apologies for the delayed reaction folks. I've released dj-stripe 2.7.3 which pins at < 5.0. |
stripe.Order
no longer exists in stripe 5.0.0Today's release of stripe Python package version 5.0.0 introduces a breaking change, removing
Order
.Unfortunately, Stripe did not deprecate this in the code or add exceptions - it is simply removed as of 5.0.0.
orders.py in dj-stripe utilizes
stripe.Order
. It is also referenced in tests/test_event_handlers.py and tests/test_order.py.I am not sure of dj-stripe's existing policy for dealing with such changes, but pyproject.toml currently specifies
stripe = ">=2.48.0"
. This may become a problem for anyone using dj-stripe who updates stripe to the latest version, and I expect the tests here will fail on next commit of dj-stripe.The text was updated successfully, but these errors were encountered: