Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8916169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:10:03+00:00 2026-06-15T05:10:03+00:00

I am trying to implement Paypal IPN verification in my node.js app.I am using

  • 0

I am trying to implement Paypal IPN verification in my node.js app.I am using express framework.

This is my code :

app.post('/paypal', function(req,res){
console.log("IN PAYPAL !! req.body : "+req.body);
var ipn = require('paypal-ipn');
ipn.verify(req.body, function callback(err, msg) {
      if (err) {
        console.log("Error:"+err);
      } else {
        //Do stuff with original params here
          console.log("req.body.payment_status :"+req.body.payment_status+" msg: "+msg);
          res.end();
        if (req.body.payment_status == 'Completed') {
          //Payment has been confirmed as completed

        }
      }
    });
});

I am using paypal-ipn for this.

When I try to send the IPN message from Paypal Sandbox I am getting this message

IPN delivery failed. Unable to connect to the specified URL. Please verify the URL and try again.

But when I try a sample message from terminal with the help of curl i am getting the request at my server app and it is displaying the log

IN PAYPAL !! req.body : [object Object]
req.body.payment_status :Pending msg: VERIFIED
POST /paypal 200 572ms

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T05:10:05+00:00Added an answer on June 15, 2026 at 5:10 am

    I got it. I am not listening to port 443 (https) in my server.

    var https = require('https'),
        fs = require('fs');
    
    var httpsOptions = {
        key: fs.readFileSync('path/to/private/key'),
        cert: fs.readFileSync('path/to/certs')
    }
    
    http.createServer(app).listen(app.get('port'), function() {
        console.log("server listening on port " + app.get('port'));
    });
    
    https.createServer(httpsOptions, app).listen(443,function () {
        console.log("server listening on port " + 443);
    });
    

    Paypal sending the IPN message to the https port 443 (I think). Anyway I got it…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to implement paypal express checkout using rails. I have read at
I am trying to implement a simple subscribe button using Paypal. I have used
I am trying to implement a recurring subscription service on a website using PayPal
I am trying to implement django-paypal (dcramer's version) with IPN and although I get
I'm trying to implement a payment system using the new PayPal API (Adaptive Payment).
I am trying to implement PayPal IPN functionality. The basic protocol is as such:
I am trying implement the Data transformation using Reflection 1 example in my code.
Just playing around with the PayPal API, trying to implement Checkout Express so I
I'm trying to implement PayPal Adaptive Payments API. Into the headers I should include
I am trying implement a most recent widget into my tumblr post. So far,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.