I'm trying to get paypal ipn working for my node.js express app and I have to validate the ipn message once I receive it by "send[ing] back the contents in the exact order they were received and precede it with the command _notify-validate". The example they give is a query string like this:
https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_notify-validate&mc_gross=19.95&protection_eligibility=Eligible&address_status=confirmed&payer_id=LPLWNMTBWMFAY&tax=0.00&...&payment_gross=19.95&shipping=0.00
However, because I'm using bodyParser, the request.body is a json object. If I am to append the "cmd=_notify-validate" and send it back, how would I receive it as a simple querystring and send it as a simple querystring without getting rid of bodyParser? I still need the json-parsed version on this route for actually interpreting the data. Also, what does sending a POST on server-side look like? (do I just do res.send(str)?)