#CipherDev17
1 messages · Page 1 of 1 (latest)
There seems to be a new ID, should that be replacing my whec_****
Hello 👋
If you created a new endpoint then your webhook secret might've changed.
i.e. whsec_xxxxx
this is my endpoint, in the top right corner of this there is a ID that starts with we_
If you look under Signing Secret
You'll find the secret key which is used for signature verification on your webhook
ohhh so this is the new webhook endpoint secret key?
yeah secrets are different per webhook endpoint
Would recommend checking your code to see if you're using the correct secret
Okay so with stripe and webhooks you will have two secret keys, one is the webhook secret and the other is just the stripe secret key.
I think i have the right webhook key but not the secret key.
I can find the secret key in the "API Keys" tab under "Secret Key" correct?
yup
do registered endpoints still work when you are in test mode?
Not sure what you mean by that, can you elaborate?
so my website is in production but I am still using test mode on stripe. Could that be the issue? Because I am pretty sure I have the right secret key and webhook endpoint secret key.
so on my endpoint that I created, there is like some sort of ID in the top right that I am not using for anything at the moment. What is that used for?
this image cuts off half of the secret key
or whatever that ID is
we_xxxx is not a secret key, it is the webhook endpoint ID
Can you share an example event ID (evt_xxxx) which you expected to be delivered on your webhook but it didn't?
should I be using that we_xxxx somewhere?
Bc i am already using the Signing Secret key for my stripe webhook endpoint secret key
Can you share the example event ID please?
i am listening for a charge.suceeded event
can you go to your events log here
https://dashboard.stripe.com/test/events
And share an example charge.succeeded event that you expected on your endpoint but didn't receive it?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
evt_1MYXISGUljPyCRPOMlXDu2Xh
This is a checkout.session.completed event
This is the charge.succeeded event
https://dashboard.stripe.com/test/events/evt_3MYXIPGUljPyCRPO27Hd3yjJ
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
evt_3MYXIPGUljPyCRPO27Hd3yjJ
if you look at the event delivery section, it was successfully sent to https://underdogidols.com/webhook
sorry my bad, this one says charge.succeeded
if you look at the event delivery section, it was successfully sent to https://underdogidols.com/webhook
Is that the endpoint you're asking about?
Ah looks like it is.
Okay so the webhook events are being sent.
Now, next step here would be to check your server log where the endpoint is hosted to see if there were any errors on your end which caused your code that handles charge.succeeded events to NOT run
im hosting on digital ocean, so there should be a log there of any issues with the webhook?
Yes