Are you using the regular anvil ‘Full Python 3’ environment? It looks like the library for stripe installed on it is stripe 2.62.0
On your local IDE, type pip show stripe
in your cli of choice running python to find out the version you have locally installed.
(it’s probably newer)
If this is the problem, you can install the newer version by:
As of August 16th, 2023 the latest version is 6.0