Files
hope-events/backend/src/controllers/webhookController.js
T

11 lines
309 B
JavaScript

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');
module.exports = {
handleYocoWebhook,
};