# Integrating IPN of Paypal

**URL:** <https://www.ruby-forum.com/t/integrating-ipn-of-paypal/127032>\
**Category:** Rails\
**Created:** [January 24, 2008, 12:37pm UTC](https://www.ruby-forum.com/t/integrating-ipn-of-paypal/127032 "2008-01-24T12:37:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hungryrubian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/cdc98d/32.png) [@hungryrubian](https://www.ruby-forum.com/u/hungryrubian)\
**Post date:** [January 24, 2008, 12:37pm UTC](https://www.ruby-forum.com/t/integrating-ipn-of-paypal/127032/1 "2008-01-24T12:37:15Z")

</div>

Hi,

Can any body help me how to integrate IPN of paypal in the rails  
application

---

<div class="post-metadata">

**Author:** ![hungryrubian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/cdc98d/32.png) [@hungryrubian](https://www.ruby-forum.com/u/hungryrubian)\
**Post date:** [January 24, 2008, 2:36pm UTC](https://www.ruby-forum.com/t/integrating-ipn-of-paypal/127032/2 "2008-01-24T14:36:07Z")

</div>

On 1/24/08, Chandoo Kk [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,
> 
> Can any body help me how to integrate IPN of paypal in the rails  
> application

Use the Active Merchant plugin.

–  
Rick DeNatale

My blog on Ruby  
[http://talklikeaduck.denhaven2.com/](http://talklikeaduck.denhaven2.com/)

---

<div class="post-metadata">

**Author:** ![hungryrubian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/cdc98d/32.png) [@hungryrubian](https://www.ruby-forum.com/u/hungryrubian)\
**Post date:** [January 27, 2008, 7:11am UTC](https://www.ruby-forum.com/t/integrating-ipn-of-paypal/127032/3 "2008-01-27T07:11:36Z")

</div>

Rick Denatale wrote:

> On 1/24/08, Chandoo Kk [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Hi,
> > 
> > Can any body help me how to integrate IPN of paypal in the rails  
> > application
> 
> Use the Active Merchant plugin.
> 
> –  
> Rick DeNatale
> 
> My blog on Ruby  
> [http://talklikeaduck.denhaven2.com/](http://talklikeaduck.denhaven2.com/)

Hi Rick thanks for your suggestion, the only place where i am facing the  
problem is i am having my paypal working and i am not able to get the  
notify\_url option working for paypal\_setup helper. I need a brief answer  
so that i can continue. Thanks a lot in advance.  
Note: I am not using active merchant nstead i use paypal plugin for all  
these stuff. The payments are being happened in the paypal but thats  
only updated in my database if at all the customer come back to my site  
from paypal. Else the payment is done in paypal but still it is not  
updating in my DB unless the users use the get back to XXX button after  
payment.

I think you got my point . Any answer is sincerely appreciable

---

<div class="post-metadata">

**Author:** ![hungryrubian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/cdc98d/32.png) [@hungryrubian](https://www.ruby-forum.com/u/hungryrubian)\
**Post date:** [January 27, 2008, 2:50pm UTC](https://www.ruby-forum.com/t/integrating-ipn-of-paypal/127032/4 "2008-01-27T14:50:33Z")

</div>

On 1/27/08, Chandoo Kk [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > Use the Active Merchant plugin.  
> > so that i can continue. Thanks a lot in advance.  
> > Note: I am not using active merchant nstead i use paypal plugin for all  
> > these stuff. The payments are being happened in the paypal but thats  
> > only updated in my database if at all the customer come back to my site  
> > from paypal. Else the payment is done in paypal but still it is not  
> > updating in my DB unless the users use the get back to XXX button after  
> > payment.
> 
> I think you got my point . Any answer is sincerely appreciable

I’m not familiar with the paypal plugin. ActiveMerchant seems to be  
the most common tool for this job, and it makes it fairly easy to set  
up the right controllers to handle paypal ipn notifications (which  
come in as http requests from the Paypal servers).

–  
Rick DeNatale

My blog on Ruby  
[http://talklikeaduck.denhaven2.com/](http://talklikeaduck.denhaven2.com/)

---

<div class="post-metadata">

**Author:** ![hungryrubian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/cdc98d/32.png) [@hungryrubian](https://www.ruby-forum.com/u/hungryrubian)\
**Post date:** [January 28, 2008, 8:22am UTC](https://www.ruby-forum.com/t/integrating-ipn-of-paypal/127032/5 "2008-01-28T08:22:16Z")

</div>

Hi Rick and all…

First of all Thank you and i am happy to say that my issue is  
resolved. I was worrying just about why it is not working even after  
every thing is in place. But then i came to know that IPN requires a  
valid public URL to work. So as and when i went in to production mode  
with my Code it started working. Once again thanks to all those  
(especially rick) who looked over in to my posting and tried to help me  
out with the solutions that you know.

🙂 (:  
Chandoo…

Rick Denatale wrote:

> On 1/27/08, Chandoo Kk [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > > Use the Active Merchant plugin.  
> > > so that i can continue. Thanks a lot in advance.  
> > > Note: I am not using active merchant nstead i use paypal plugin for all  
> > > these stuff. The payments are being happened in the paypal but thats  
> > > only updated in my database if at all the customer come back to my site  
> > > from paypal. Else the payment is done in paypal but still it is not  
> > > updating in my DB unless the users use the get back to XXX button after  
> > > payment.
> > 
> > I think you got my point . Any answer is sincerely appreciable
> 
> I’m not familiar with the paypal plugin. ActiveMerchant seems to be  
> the most common tool for this job, and it makes it fairly easy to set  
> up the right controllers to handle paypal ipn notifications (which  
> come in as http requests from the Paypal servers).
> 
> –  
> Rick DeNatale
> 
> My blog on Ruby  
> [http://talklikeaduck.denhaven2.com/](http://talklikeaduck.denhaven2.com/)

---

<div class="post-metadata">

**Author:** ![hungryrubian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/cdc98d/32.png) [@hungryrubian](https://www.ruby-forum.com/u/hungryrubian)\
**Post date:** [February 6, 2008, 3:11pm UTC](https://www.ruby-forum.com/t/integrating-ipn-of-paypal/127032/6 "2008-02-06T15:11:23Z")

</div>

Chandoo Kk wrote:

> Hi Rick and all…
> 
> First of all Thank you and i am happy to say that my issue is  
> resolved. I was worrying just about why it is not working even after  
> every thing is in place. But then i came to know that IPN requires a  
> valid public URL to work. So as and when i went in to production mode  
> with my Code it started working. Once again thanks to all those  
> (especially rick) who looked over in to my posting and tried to help me  
> out with the solutions that you know.
> 
> 🙂 (:  
> Chandoo…

Hi Chandoo,

Am trying to integrate Paypal with my application. Just wondering if you  
could post a sample of your IPN action so I can see what what’s going on  
as I’m struggling to get it working?

I’m also wondering how do I pass and receive other form inputs to Paypal  
e.g. if on my paypal form I have a field asking for a URL?

Cheers
