From ed9d9c6c2670ec68cf5d57e4960158c1fa456691 Mon Sep 17 00:00:00 2001 From: tayutaedomo Date: Sun, 28 Feb 2016 21:40:39 +0900 Subject: [PATCH] Remove unused code --- routes/notifications.js | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/routes/notifications.js b/routes/notifications.js index d922416..938d92d 100644 --- a/routes/notifications.js +++ b/routes/notifications.js @@ -89,32 +89,6 @@ router.post('/webhook/listener', function(req, res, next) { res.send('OK'); }); -/* - * ex) curl "http://localhost:3000/notifications/ipn/listener?foo=bar" - */ -router.get('/ipn/listener', function(req, res, next) { - console.log(req.query); - - var settings = { 'allow_sandbox': true }; - - ipn.verify(req.query, settings, function callback(err, msg) { - if (err) { - console.error(err); - - } else { - console.log(msg); - - // Do stuff with original params here - - if (req.query.payment_status == 'Completed') { - // Payment has been confirmed as completed - } - } - - res.send('OK'); - }); -}); - /* * ex) curl "http://localhost:3000/notifications/ipn/listener" -d "foo=bar" */