Search code examples
ruby-on-railsruby-on-rails-3payment-gatewayactivemerchant

how to implement a payment system in rails


I am new to the rails world and am in the process of setting up a small rails app for a client. One of the requirements is that the user enters their credit card which gets charged for a specified amount.

I haven't had much experience with payment systems. I believe active merchant gem can be used for this purpose but how does actually charging the card work out and for testing purpose will I be able to charge a dummy account? From your experience, is it safe to go with a provider like paypal?


Solution

  • You should checkout ActiveMerchant.

    FYI Peepcode has a post on this:

    http://peepcode.com/products/activemerchant-pdf