#tristans_webhooks
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1299298265400872981
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ happy to help
you can if you're using the Stripe CLI https://docs.stripe.com/cli/events/resend#events_resend-stripe-version
thank you for your speed, I did not find this documentation alone ๐ค
let me know if you need any more help
I am getting the following error when i try to use this cmd => stripe events resend evt_1QCMwXAEt55jQS9fOeh3Sm8l --live --webhook-endpoint=we_1Jr27vAEt55jQS9fCcyIVJrA --stripe-version 2024-09-30.acacia
I don't know what i am missing here, if you can tell me what's wrong.. ๐
error :
The provided key 'rk_live_***********************************************************************************29Odo1' does not have the required permissions for this endpoint on account 'acct_1DEFCOA'. Please use a different key to perform this action.
yes that's expected
stripe login let me set auth for test mode only
give me a second
I'll share the proper docs
if you visit https://dashboard.stripe.com/apikeys
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
you can see the rk_xxx Restricted Key that is used for your CLI
you need to click on the ... then Edit Key
actually that might not work
you might need to use your secret key for that
ok, but how can i use my secret key with the stripe CLI ?
well, it's re-sending the event with the initial api_version "2020-08-27" while i need to resend the request and replace the value of the field api_version with "2024-09-30.acacia"
can you try to create a new webhook endpoint that points to the same URL (just for now) and then use the new webhook endpoint ID?
ok i'll try
for some reason I can't seem to see the request that you're sending from the CLI
would you mind sharing the whole CLI request without the secret key?
stripe events resend evt_1QCMwXAEt55jQS9fOeh3Sm8l --live --webhook-endpoint=we_1QDk7fAEt55jQS9fIQjuNG5I --stripe-version 2024-09-30.acacia --api-key ***
are you getting a request ID req_xxxx ?
nevermind I found what I was looking for
give me a second
Hey! Taking over for my colleague.
You can't regenerate an event using a different API version
hi !
But what you can do as a workaround, is to make a get by id on the object Id using a specific/different API version when you receive the event payload
Well I just wanted to check that by updating the api version of my webhook, I would no longer have the following error => Received event with API version 2020-08-27, but Stripe.net 46.0.0 expects API version 2024-09-30.acacia
I see the use case.. You need to generate a new event in that case.
Yes, i'll see it later then ๐ Thanks for your time