# ActiveMerchant Paypal IPN and RESTful design

**URL:** <https://www.ruby-forum.com/t/activemerchant-paypal-ipn-and-restful-design/112966>\
**Category:** Rails\
**Created:** [August 25, 2007, 1:12am UTC](https://www.ruby-forum.com/t/activemerchant-paypal-ipn-and-restful-design/112966 "2007-08-25T01:12:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mooktakim](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/898d66/32.png) [@mooktakim](https://www.ruby-forum.com/u/mooktakim)\
**Post date:** [August 25, 2007, 1:12am UTC](https://www.ruby-forum.com/t/activemerchant-paypal-ipn-and-restful-design/112966/1 "2007-08-25T01:12:05Z")

</div>

Hello,

I’m trying to go all REST of my application. But i’ve come to one  
problem.  
How do i do payment, using IPN, in a RESTful way?

right now i have an Payments controller. With 2 actions.  
action “new” shows a page with a paypal button.  
action “paypal\_ipn” is where paypal sends its notifications.

How would i go about doing this in a REST environment?

Thank you

---

<div class="post-metadata">

**Author:** ![mooktakim](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/898d66/32.png) [@mooktakim](https://www.ruby-forum.com/u/mooktakim)\
**Post date:** [August 25, 2007, 6:08am UTC](https://www.ruby-forum.com/t/activemerchant-paypal-ipn-and-restful-design/112966/2 "2007-08-25T06:08:27Z")

</div>

On 8/24/07, Mooktakim A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> How would i go about doing this in a REST environment?  
> Don’t worry about it, not everything needs to be REST. Though, if you  
> really want to, I’d have paypal send a POST to /payments to create a  
> new payment resource.

–  
Rick O.  
[http://lighthouseapp.com](http://lighthouseapp.com)  
[http://weblog.techno-weenie.net](http://weblog.techno-weenie.net)  
[http://mephistoblog.com](http://mephistoblog.com)
