#rafaelbaptista - webhooks

1 messages · Page 1 of 1 (latest)

urban current
#

Hi there. Can you share an example event ID for an event where this happened?

frank cargo
#

yap, is this one : "id": "evt_1L981gCRI4H2eNZZrV6zQbab",

urban current
#

Looks like your webhook endpoint is responding to the requests with a 200 so I can't see the error response

#

I recommend keeping the signature verification portion outside any async queing

#

But up to you. Signature verification issues are very common

frank cargo
#

i'm doing the trigger fowarding to localhost

urban current
#

Usually it's due to not using the raw inbound request body

frank cargo
#

i'm getting 200 and 400 error codes

#

and that error keeps appearing, so i'm not able to check the data of the webhook since fails on the signture verification

frank cargo
urban current
#

No you absolutely should

#

So some events pass and some fail with using stripe trigger?

frank cargo
#

yes i'm using stripe trigger

#

first need to figured out how to solve the signature issue since that is the problem now

urban current
#

So some events pass signature verification?

#

Like the first event there passed the check?

frank cargo
#

: "evt_1L98KMCRI4H2eNZZl1Luj29V",

#

this returns 400

#

no both failed the signature

urban current
#

Ok

#

Are you using the webhook signing secret from the CLI?

frank cargo
#

i'm using the secret from the dash

urban current
#

You can't do that. You'll have to use the one from the CLI (the one outputted when running stripe listen...)

#

Since this is local

frank cargo
#

and once i move to live i use the one that im using now?

urban current
#

You'd use the one from the dashboard, yes. But it would have to be the one from the webhook created in live mode

#

You can also create webhooks in test mode from the dashboard

#

So make sure you create it in live mode when you go live and use its secret

frank cargo
#

alright i'm testing now to see if it works

#

its possible to expand the dispute charge object from the webhook

#

or i have to make another call to retrive the details of the charge?

urban current
#

What webhook event?

frank cargo
#

charge.dispute.created

urban current
frank cargo
#

yeah but i'm talking of expanding the the webhook data object,

#

on a regular call i know that is possible

#

what i meant is if i can to get the charge info on the webhook event associated with the dispute if i need to do the charge::retrive(id) or stripe provide a way to do the expand of the webhook obj

urban current
#

Ah ok

#

You'll have to make the API call