#Cecil - Webhooks
1 messages ยท Page 1 of 1 (latest)
when creating my webhook, i specify the version - '2020-08-27' which is supposed to overwrite the version i have setup in my dashboard
but when i run the CLI locally it defaults to the dahsboard version instead on processing the webhook with the version - '2020-08-27'
i contact stripe support and they kept sending me the same articles. so wanted to reach out to fellow devs who might have encountered this
If you are using the CLI it will automatically default to your dashboard version AFAIK
according to the docs, if you pass the api_version, you can overwrite that or thats not the case ?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
let me take a step back and ask:
when i run the CLI locally
What exactly are you doing with the CLI in this case?
stripe listen --events customer.created --forward-to localhost:3000/rest/webhook/stripe
and the backend is making all request with the api version i mentioned above, so its odd my responses are with the dashboard version
Ah, in that case I think you need to include the API version in the headers flag when invoking the stripe listen command.
https://stripe.com/docs/cli/listen#listen-headers
so so i cant choose the api version just the option --latest
well thats better than none. let me try it real quick and holla back
merci beacoup chef!
You can also look into cusom configuration of your CLI as we document here (in case that's useful):
https://stripe.com/docs/stripe-cli/configure
yes i was using this one but the option --stripe-version 2020-08-27 doesnt work on cli "/
Hmmm .. ๐ค
st ill you been a great help.i appreciate it
I'm happy we've been able to help ๐