dj-stripe / dj-stripe

dj-stripe automatically syncs your Stripe Data to your local database as pre-implemented Django Models allowing you to use the Django ORM, in your code, to work with the data making it easier and faster.
https://dj-stripe.dev
MIT License
1.56k stars 474 forks source link

Feature/update webhook endpoint create default api version #2011

Closed arnav13081994 closed 3 months ago

arnav13081994 commented 6 months ago

This PR will fix issues like #2003 from happening in the future. The commit can be cherry-picked onto 2.8 to create another release. Does not require any migrations.

patroqueeet commented 6 months ago

I wonder if retrieving the api version from stripe would be more consistent than using the local setting. Would do a Django startup validation for stripe side api version vs. local setting api version make sense?

arnav13081994 commented 5 months ago

We cannot retrieve the API version programmatically. And that is why the user has the option to specify the api version manually or they can stick to the default api version configured for the project.