mataroa-blog / mataroa

Naked blogging platform
https://mataroa.blog
GNU Affero General Public License v3.0
258 stars 22 forks source link

Upgrade stripe lib to v8 #61

Open sirodoht opened 6 months ago

sirodoht commented 6 months ago

Stripe have published some new releases with breaking changes:

https://github.com/stripe/stripe-python/blob/master/CHANGELOG.md#800---2024-01-25

This release introduces StripeClient and a service-based call pattern. This new interface allows you to easily call Stripe APIs and has several benefits over the existing resource-based pattern:

  • No global config: you can simultaneously use multiple clients with different configuration options (such as API keys)
  • No static methods for easier mocking

Migration guide: https://github.com/stripe/stripe-python/wiki/Migration-guide-for-v8-(StripeClient)

ItsWuotan commented 6 months ago

Im a moron. But if the update will make it possible to have a custom amount field that would be nice. For those able to pay more and want to support, that is an option. Not that i am rich but could throw in a few more bucks when it renew in the near future.