#Kolombina
1 messages · Page 1 of 1 (latest)
Hi there!
I suggest editing your message to remove your webhook secret
Can you share your account ID (acct_xxx)? It's at the top of this page: https://dashboard.stripe.com/settings/account
acct_1K7fjfCWjMNdyNil
Which webhook endpoint ID (we_xxx) is having issues?
we_1KdJn9CWjMNdyNil2J6IbW8q
this key I've found at stripe cli and used it for a long time
whsec_102...fff4
Looking at a specific event, for example https://dashboard.stripe.com/test/events/evt_1MRw9KCkCfPO59fsJXBpKe0y, your server returned an error. So you'll have to check your logs on your end to understand the issue
this key I've found at stripe cli and used it for a long time
You can't use the whsec_ from the CLI for real webhook endpoint
You should find the whsec_ here: https://dashboard.stripe.com/test/webhooks/we_1KdJn9CWjMNdyNil2J6IbW8q
Each webhook endpoint has its own whsec_
error raises on your piece of code (I copied it form docs)
try:
event = stripe.Webhook.construct_event(
payload=request.body, sig_header=signature, secret=endpoint_secret
)
except ValueError as e:
# Invalid payload.
return HttpResponse(status=400,data=e)
except stripe.error.SignatureVerificationError as e:
# Invalid Signature.
return HttpResponse(status=400)
Hey! Taking over for my colleague. Let me catch up.
what is the error ?
If you are testing webhook signature for the first time, I invite you to refer to this full code:
https://github.com/stripe/stripe-node/blob/master/examples/webhook-signing/node-express/express.js
And follow this step by step guide:
https://stripe.com/docs/webhooks/quickstart
You're welcome