Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
tayutaedomo committed Feb 28, 2016
1 parent 7326329 commit ed9d9c6
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions routes/notifications.js
Expand Up @@ -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"
*/
Expand Down

0 comments on commit ed9d9c6

Please sign in to comment.