ActiveMerchant Paypal IPN and RESTful design


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

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.