Skip to content

How Does PayPal IPN Work?

I’ve had lots of questions recently about PayPal’s IPN (Instant Payment Notification), both from SmartDD and Nickel Script customers.  The recurring theme is how can IPN work on several sites?

If you’ve looked at the activation method for IPN, you’ll know that it’s by entering a default IPN URL into your PayPal profile.  PayPal’s logic must be that if you want to use IPN, then you must have at least one site with a script that uses it.

I think this then is why the confusion arises, and I too was confused a few years ago when I first used an IPN script and wanted to accept PayPal payments on several sites.  I thought that if there was only one IPN URL, then I could only use PayPal with one site.

Seemed logical to me, and I think to most other people too judging by the questions asked.

The truth is, as I mentioned above, it’s just a default URL and not the only one you can use.

When you have two sites that you want to use IPN with, just choose one and use that scripts IPN URL.  Then when a payment comes in on the other site, the default IPN URL gets temporarily overridden by that second sites IPN settings.

It works by a setting sent in the POST message sent to PayPal.  Inside there is the IPN URL that PayPal is to use for that transaction only.  When payment is complete, PayPal sends the transaction data back to the site that initiated the transaction, and not to the default site.

Okay?

So why does SmartDD require that you use the SmartDD IPN URL as the default one?  Well the truth is it doesn’t, you can use any IPN URL for any script on any site you have.

The problem has always arisen though that if you’re using an auction site like eBay and selling goods on there (SmartDD v2 and above supports physical goods too), there’s no way to tell SmartDD how to handle the PayPal payment and transaction.

By setting the default IPN URL to point to your SmartDD installation, PayPal will send all the transaction data to SmartDD.  As long as you have the title of your eBay listing also identically matched within SmartDD, that will trigger the SmartDD process and automatically send emails to your customer, and record all details of the transaction and your new customer within the SmartDD database.

And with the soon to be released version 3, you can also have CDs or DVDs created and automatically shipped to your customer without you having to do a thing.

-Frank Haywood

RSS feed | Trackback URI

5 Comments »

Comment by GCox from Online Productivity Tips
2008-05-22 14:54:28

Hi Frank

The whole paypal ipn thing has always baffled me so thanks for the explanation.

Love the fact v3 will automate the whole CD/DVD delivery by tying in with Kunaki etc.  Can’t wait to check it out.

Cheers…Graham

x
Comment by Nathan Subscribed to comments via email
2008-05-22 15:07:35

Good explanation, Frank, although I was expecting a joke (Q: How does PayPal IPN work? A: It doesn’t!) ;)

x
Comment by Gareth from creative publishing
2008-05-22 17:45:41

You would have thought that since Ebay now owns Paypal they would have taken the trouble to implement a more elegant solution but I suppose it is another case of “If it ain’t broke, don’t fix it”.

Can hardly wait for version 3, that is going to make such a difference to so many people. We can all moan about Ebay decision to ban digital downloads, but thankfully most of us in the UK have the ability to adapt. In some third world countries, like India, the decision really did end livelihoods. The postage costs from places like that to their customers in the US were to expensive for them to transfer their data to physical discs to sell. It always seems to be those that can least afford it that are hardest hit.

More power to you Frank, you probably do not even appreciate the many ways your products and services are changing people’s lives for the better.

Best wishes
Gareth

x
2008-05-24 02:12:19

Nice to know Frank but you didn’t explain what has to go into OTHER Paypal buttons to override the IPN Default.

Is there some custom code which has to be added to the Paypal button?

x
Comment by Frank Haywood
2008-05-24 10:31:47

David:

IPN isn’t as simple as that.

You need a script to handle the data that PayPal sends via the POST such as SmartDD.

Just a simple PayPal button isn’t capable of doing that.

-Frank

x
Name (required)
E-mail (required - never shown publicly)
URI
Subscribe to comments via email
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> in your comment.

I've installed KeywordLuv. Enter YourName@YourKeywords in the Name field to take advantage.

However, don't take that as I'm inviting you take advantage of my blog for a back link for free. Only those posts that are relevant and contain several paragraphs of relevant content will be approved. A hundred words or so will likely do it if on topic.

My regular readers understand this, but if this is your first visit then you should be aware that this is how most blog owners feel. A "me too" post from someone I don't know or a hastily constructed sentence will get marked as Akismet spam.

So... play the game properly and all will be well. ;)

Thank you.

-Frank Haywood

Trackback responses to this post