#op_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/1374208178971213884
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
hello! From what I can see, your server was returning a 500 HTTP response, I don't have full insight into what your server was trying to do to return a 500 HTTP response, but based off what you said, it sounds like your server was attempting to do something with your secret key but failed?
when you say "stopped working" what was the specific error message that you received?
yeah when a customer sign up with payment link it supposed to create a new company in our web app through api
if you see the 400 error we got right after checkout was completed it says webhook verification failed. then i played with some things nothing worked. then just created a new secret key and it worked
how come the live secret key stopped working with no reason or at least no reason i know about?
To clarify, webhook verification is done using the webhook secret key, it doesn't have anything to do with the API secret key - https://docs.stripe.com/webhooks#verify-webhook-signatures-with-official-libraries e.g.
$payload, $sig_header, $endpoint_secret
);```
Create an event destination to receive events at an HTTPS webhook endpoint. Receiving webhook events is particularly useful for listening to asynchronous events such as when a customer's bank confirms a payment, a customer disputes a charge, a recurring payment succeeds, or when collecting subscription payments.
i know i checked the webhook it was the same as mine. i checked everything couldnt find no issue
changed the secret key and it worked
there's not much we can say at this point without more details. I'll suggest logging the last 4 of your keys to validate if there was a change in key in your backend server possibly. From our side, all we can see is your existing keys are all still valid and working.
the key was matching to what we have in code. that why i dont understand what could trigger it
We don’t have visibility into how your code currently works, so we also can’t determine or advise on why this issue is occurring. It would be helpful to add additional logs on your server to gather more details about what’s happening first.
the thing is nothing happned to the code it was working fine, stopped working and when applied new key it good again. any idea or a scenario that stripe key stops working?
you can see in the developer section of your Dashboard that your keys are all still working. I don't see any attempt to disable the key via the logs too. So no, at this point, nothing comes to mind for why you've encountered the issue that you've mentioned
ok ill wait for it to happen again a nd try to capture something