#asadahmad27
1 messages · Page 1 of 1 (latest)
?
Please be patient
Can you start by sharing your webhook endpoint code?
I'd guess that your framework/host is parsing the request body unbeknownst to you. The signataure verification method expects the raw request payload, not JSON
getting a json in rawBody
Take a look at: https://github.com/invertase/stripe-firebase-extensions/blob/next/firestore-stripe-payments/functions/src/index.ts#L728
I'd guess it's being parsed and malformed when you're logging the value
is there could be any other reason for this error?
Well, the whSec variable could jsut be the wrong value
It's either one of those two things
ok i saw the link. i'm doing the exact same , passing the rawbody as it is]
You have a log line though, that will 'read' the boidy and potentially malform it. Remove the log line
Ok let me do that