Active Merchant is a Ruby library that allows developers to easily integrate payment processing into their applications. It supports many popular offsite and direct payment gateways. The library was created by the founders of Shopify to handle payments for their e-commerce platform. Active Merchant abstracts away differences between gateways so developers can switch processors easily. It provides a simple API to authorize credit cards, handle refunds and other common payment tasks.