Update README to use add_beta_version (#1345)

This commit is contained in:
helenye-stripe 2024-02-28 12:19:18 -08:00 committed by GitHub
parent 303d7c3256
commit 6458ba68f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,6 @@ See the [Ruby API docs](https://stripe.com/docs/api?lang=ruby).
See [video demonstrations][youtube-playlist] covering how to use the library.
## Installation
You don't need this source code unless you want to modify the gem. If you just
@ -336,10 +335,10 @@ gem install stripe -v 7.1.0.pre.beta.2
We highly recommend keeping an eye on when the beta feature you are interested in goes from beta to stable so that you can move from using a beta version of the SDK to the stable version.
If your beta feature requires a `Stripe-Version` header to be sent, use the `Stripe.api_version` field to set it:
If your beta feature requires a `Stripe-Version` header to be sent, set the `Stripe.api_version` field using `Stripe.add_beta_version`:
```python
Stripe.api_version += "; feature_beta=v3"
Stripe.add_beta_version("feature_beta", "v3")
```
## Support