-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
Release 2.4.0: preparation #1265
Comments
Introducing in-database Stripe API keysStripe API keys are now stored in the database, and are now editable in the admin. Important note: By default, keys are visible by anyone who has access to the Dj-Stripe administration. Why?As we work on supporting multiple Stripe accounts per instance, it is vital for Dj-Stripe to have a mechanism to store more than one Stripe API key. It also became obvious that we may want proper programmatic access to create and delete keys. Furthermore, API keys are a legitimate upstream Stripe object, and it is not unlikely the API may allow access to listing other API keys in the future, in which case we will want to move them to the database anyway. In the next release, we are planning to make WebhookEndpoints (and thus webhook secrets) manageable via the database as well. Do I need to change anything?Not at this time. The settings Adding new API keysYou may add new API keys via the Dj-Stripe "API key" administration. The only required value is the key's "secret" value itself. Example: Once saved, Dj-Stripe will automatically detect whether the key is a public, restricted or secret key, and whether it's for live or test mode. If it's a secret key, the matching Account object will automatically be fetched as well and the key will be associated with it, so that it can be used to communicate with the Stripe API when dealing with objects belonging to that Account. Updating the API keysWhen expiring or rolling new secret keys, you should create the new API key in Stripe, then add it from the Django administration. Whenever you are ready, you may delete the old key. (It is safe to keep it around, as long as it hasn't expired. Keeping expired keys in the database may result in errors during usage). What about public keys?Setting |
Major deprecationsNobody likes features being removed. However, the last few releases we have had to remove features that were not core to what dj-stripe does, or simply poorly-maintained. To keep up with the trend, we are making three major deprecations this release: Creating Plans from the Django Admin is no longer supportedThe Along with this, we are also deprecating the Deprecating the REST APIWe are dropping all support for the REST API and will be fully removing it in 2.5.0. We're doing this because we wish to keep such an API separate from dj-stripe. Work has already started on a new project: https://github.com/dj-stripe/ (TODO ^ update link to contrib api project)Deprecating
|
@jleclanche here are a couple more things if you want them in there. You've covered everything else 👍 New Features
Improvements
Bugfixes
|
dj-stripe 2.4.0 is out! Release notes: https://dj-stripe.readthedocs.io/en/stable-2.4/history/2_4_0/ Thanks to everyone who helped with it! |
I'm starting the prep work for the next release. I'd like to have it some time in November (I wanted to do this in October but life got in the way).
Highlight features of this release:
Right now, what's missing is #1263, and full documentation for the price stuff, including documented deprecations for anything where we transition from plan to price as the preferred method.#958 is in the milestone and I think I want to keep it in there if possible, but I won't want to block the release on it entirely.Release checklist:
PaymentsContextMixin
andSubscriptionMixin
DJSTRIPE_FOREIGN_KEY_TO_FIELD
(see below)DJSTRIPE_USE_NATIVE_JSONFIELD
The text was updated successfully, but these errors were encountered: