#rafaelbaptista - webhooks
1 messages · Page 1 of 1 (latest)
yap, is this one : "id": "evt_1L981gCRI4H2eNZZrV6zQbab",
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
i'm doing the trigger fowarding to localhost
Usually it's due to not using the raw inbound request body
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
what this means exacly should we not run signature verifications?
No you absolutely should
So some events pass and some fail with using stripe trigger?
yes i'm using stripe trigger
first need to figured out how to solve the signature issue since that is the problem now
So some events pass signature verification?
Like the first event there passed the check?
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
and once i move to live i use the one that im using now?
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
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?
What webhook event?
charge.dispute.created
Yeah. You can always check which fields are expandable on the stripe object: https://stripe.com/docs/api/disputes/object#dispute_object-charge
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
Ah ok
No you can't expand: https://stripe.com/docs/expand#with-webhooks
You'll have to make the API call