Skip to content

Commit

Permalink
Update README to reference addBetaVersion helper (#1753)
Browse files Browse the repository at this point in the history
* Update README to reference addBetaVersion helper

* Update README.md
  • Loading branch information
helenye-stripe authored Feb 23, 2024
1 parent c9d59ab commit 2ff2dab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,13 @@ To install a beta version of stripe-java follow steps [installation steps above]
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.stripeVersion` field to set it:
If your beta feature requires a `Stripe-Version` header to be sent, set the `Stripe.stripeVersion` field by calling `Stripe.addBetaVersion`:

> **Note**
> The `stripeVersion` can only be set in beta versions of the library.
> Beta version headers can only be set in beta versions of the library.
```java
Stripe.stripeVersion += "; feature_beta=v3";
Stripe.addBetaVersion("feature_beta", "v3");
```

## Support
Expand Down

0 comments on commit 2ff2dab

Please sign in to comment.