#Mike.7189-webhook-signing

1 messages ยท Page 1 of 1 (latest)

twin yew
#

Hey there! Can you double check you're using the correct signature secret for your live webhook?

main hound
#

Hi ๐Ÿ™‚
I think I messed my env

#

there's two secrets: we_xxxx and whsec_xxx

twin yew
#

AHA! All good?

main hound
#

it's not live, it's test

#

which one am I supposed to use?

twin yew
#

The signing secret. The other is just the object ID for the webhook

main hound
#

hallelujah ๐Ÿ™‚

twin yew
#

๐ŸŽ‰

main hound
#

that was easy ๐Ÿ™‚ thank you developer

#

how can I use the we_xxx?
Somewhat like:

stripe.webhooks.retrieve('we_xxx')

?

#

I mean what's the point of this thing

twin yew
#

Some users need to programmatically manage their webhooks

main hound
#

poor fellas

#

so basically the same logic with webhooks, as with products or prices?

#

stripe.{{products/prices/webhooks}}.{{retrieve/update/create}}
right?

twin yew
#

Yeah, pretty much all objects in the Stripe API have the same 'methods' (list, create, etc)

#

Webhooks are just like any other object

main hound
#

dope. Stripe is the best ๐Ÿ™‚
Well written docs, nice dev-help (I honestly couldn't find ANYBODY having discord server for live dev-help).