#Max™
1 messages · Page 1 of 1 (latest)
Hi 👋 yes, you can use the approaches shown here to change the API version that you use either on a per-request basis or for all requests made from that instance:
https://stripe.com/docs/api/versioning
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
sorry, but your answer didnt helped me.
is there any way that i can pass a parameter to stripeCLI so i receive the 2022 format webhook reposponses ?
@last galleon
What is it that you're trying to accomplish?
i am trying to test a webhook by using stripeCLI on my local machine
on production the api is set up to work with 2020 version
i want to test the webhook on my local environment by using the new version 2022
So you're using stripe listen?
The --latest (-l) option for that function runs it based on the latest API version:
https://stripe.com/docs/cli/listen#listen-latest
.\stripe.exe listen --forward-to http://localhost:6031/webhook --latest ?
like this ?
Yup, does that do what you're looking for?