Paypal chekout using rails3

i am the new from rails please tell the below solution
how to get the amount from paypal and that amount is added to the admin
in rails 3

Check out the active merchant gem it’s the best solution out there for integrating check out process into your rails app.

https://github.com/Shopify/active_merchant