Skip to content
railsengines.com

Pay

Subscription billing for Rails across Stripe, Paddle and Braintree

Takes off your invoice

You would run instead $0/mo

No ratings yet
Gem
pay
Repository
pay-rails/pay
License
MIT
Stars
1,700
Added
July 26, 2026
Pay mounted at /pay
Pay mounted at /pay

About

Pay is a Rails engine that puts subscription billing into your models.

What you get

  • pay_customer on any model
  • Subscriptions, trials, plan swaps, proration and cancellation
  • Webhook handling for each processor
  • Invoice and receipt records in your database

Adding it

ruby
# Gemfile
gem "pay"

# app/models/user.rb
class User < ApplicationRecord
  pay_customer
end
ruby
user.payment_processor.subscribe(plan: "price_monthly")
user.payment_processor.subscribed?

The data-locality argument

When subscription state lives in your database, "show enterprise customers this
feature" is a scope. When it lives in a billing vendor, it is an integration.

Discussion (0)

Sign in to join the discussion.

No comments yet.