Additional References
Events
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
giro.account.credit
giro.account.debit
giro.account.debit.failed
const crypto = require('crypto');
const secretKey = 'YOUR_SECRET_KEY'; // Replace with your giro secret key
const hash = crypto
.createHmac('sha512', secretKey)
.update(JSON.stringify(req.body))
.digest('hex');
if (hash === req.headers['x-giro-signature']) {
doSomethingAmazing(); // Replace with actual logic
return res.status(HttpStatus.OK).json(result);
} else {
return res.status(HttpStatus.BAD_REQUEST)
.json({ message: 'Webhook security error' });
}
Was this page helpful?