Hi, I am having some trouble with the Webhook. I would like to know when an ordered has been completed and create a function when this has happened. Anyone could please help me? I am using Nuxt and Snipcart. Thanks
app.get('/hook/', async(req, res) => {
if (req.body.eventName === 'order.completed') {
res.send("SUCCESS")
}else{
res.send("ERROR")
}
})