In simple English
When you build an online store, you need to collect money from credit cards. Different companies that handle payments use completely different rules and computer codes. Changing from one payment company to another usually means rewriting your whole checkout page. This library gives your code one single way to talk to dozens of different payment companies. If you switch companies later, your store code stays almost the same. It costs nothing in money, but takes time to set up and requires ongoing care when payment rules change.
What it is
Active Merchant is a Ruby library that standardizes how online stores process credit cards and talk to payment gateways. It provides unified commands for charging cards, refunding money, and saving customer details across many different financial services.
What it is good for
This is good for solo builders using Ruby or Ruby on Rails who want to support multiple payment processors or switch providers easily without rewriting their checkout code.
- Connects to dozens of different payment processors with one shared code structure.
- Lets you switch between payment companies without rewriting your checkout workflow.
- Well-tested in production since 2006 by large ecommerce platforms and teams.
- Requires writing and maintaining Ruby code to handle webhooks and card errors.
- Some payment gateways require special account approval or business verification to test.
- You must update the library regularly to keep up with security patches and API changes.
Writing custom API integration code for every single payment gateway you want to support
Ruby on Rails (a server-side web application framework written in Ruby)
- stripe/stripe-ruby2.2k stars
Official Ruby library specifically for the Stripe payment platform instead of multiple gateways.
- akaunting/akaunting10k stars
Self-hosted invoicing and expense tracking, with the double-entry accounting sold separately as an add-on.
- ledger/ledger6.1k stars
Double-entry accounting from a plain text file, run from the command line, with no database of any kind.
- spiral-project/ihatemoney1.4k stars
A shared-expense list that works out the shortest set of payments to make everyone even.
gem install activemerchant