RoR + online payment

You should definitely check out the ActiveMerchant plugin:

http://www.activemerchant.org