From dd1f23b9b2612a905a26bc855a8d09ec8fd58b8b Mon Sep 17 00:00:00 2001 From: Helen Ye Date: Tue, 27 Feb 2024 00:24:45 -0800 Subject: [PATCH 1/2] Update README to use AddBetaVersiong --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 79aa5de0ff..b8df8d3d43 100644 --- a/README.md +++ b/README.md @@ -535,13 +535,13 @@ go get -u github.com/stripe/stripe-go/v76@v73.3.0-beta.1 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.APIVersion` field to set it: +If your beta feature requires a `Stripe-Version` header to be sent, set the `stripe.APIVersion` field using the `stripe.AddBetaVersion` function to set it: > **Note** > The `APIVersion` can only be set in beta versions of the library. ```go -stripe.APIVersion += "; feature_beta=v3" +stripe.AddBetaVersion += ("feature_beta", "v3") ``` ## Support From 6af31a6c2d49b4f4b140b35572e24f234168fbff Mon Sep 17 00:00:00 2001 From: helenye-stripe <111009531+helenye-stripe@users.noreply.github.com> Date: Tue, 27 Feb 2024 11:14:37 -0800 Subject: [PATCH 2/2] Fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b8df8d3d43..e5727408c0 100644 --- a/README.md +++ b/README.md @@ -541,7 +541,7 @@ If your beta feature requires a `Stripe-Version` header to be sent, set the `str > The `APIVersion` can only be set in beta versions of the library. ```go -stripe.AddBetaVersion += ("feature_beta", "v3") +stripe.AddBetaVersion("feature_beta", "v3") ``` ## Support