[SOLVED] How can i receive post data from another web app

Hi everybody,

I’m trying to receive post data from another web app which is using php and it’s submiting a HTTP POST

<form action="http://my_app/pay/notify" method="post">
      <input type="text" name="merchant_oid" value="sdasdasdads">
      <input type="submit">

And i want to read name="merchant_oid" in my method in meteor app. I tried

‘status’: function() {
return Meteor.call(‘notifyPay’);

‘notifyPay’: function() {
console.log(‘Notification has started by the request’);

var bodyParser = Npm.require('body-parser'); 
Picker.middleware(bodyParser.urlencoded({ extended: false }));

var post = Picker.filter(function(req, res) {
  return req.method == "POST";

post.route('/post', function(params, req, res, next) {

But, i got

Exception while invoking method 'notifyPay' TypeError: POST.hasOwnProperty is not a function

Is there an easy way to do it? Thanks.

I changed post.route('/pay/notify',