const { handleProviderWebhook } = require('../payments/webhook'); // @desc Handle Yoco webhook events (signature check and processing: src/payments) // @route POST /api/webhooks/yoco // @access Public const handleYocoWebhook = handleProviderWebhook('yoco'); const handleWhatsappWebhook = async (req, res) => { try { const { body } = req; const { message } = body; } catch (error) { res.status(500).json({ error: 'Internal Server Error' }); } } module.exports = { handleYocoWebhook, handleWhatsappWebhook, };