router.post('/tinkoff_callback', async (req, res, next) => { log(req.body) try { await payment.checkRequest(req) await payment.updateInvoice(req.body) res.send('OK') } catch (e) { log(e) return next(createError(500, e)) } })