#rbole

1 messages · Page 1 of 1 (latest)

signal coveBOT
jaunty raptor
#

That looks like a suggestion we've had to get the raw body. Does it seem to be working or are you still getting errors about the signature not matching?

whole drum
#

yes it works, but I have concerns that I have doubled the payload for every request. So I changed it to:
app.use(express.json({
limit: '3mb',
verify: (req, res, buf) => {
if(req.originalUrl === '/api/rt/swhabo'){
console.log('stripe webhook')
req.rawBody = buf
}
}
}));

jaunty raptor
#

Doubled the payload? As in certain logic is triggering twice?