Recurring Billing Orders - Staff Guide

Last Updated: October 13, 2025 Version: 1.0

Overview

This guide explains how to set up recurring billing orders for customers who rent equipment on an ongoing basis (monthly, weekly, etc.). The system will automatically charge their saved credit card on the billing date.

Prerequisites

Before creating a recurring billing order, ensure:

  1. ✅ Customer has a saved payment profile (credit card on file)
  2. ✅ Customer has auto-charge enabled on their account
  3. ✅ Equipment is already onsite or will be delivered

Part 1: Enable Auto-Charge for Customer

IMPORTANT: This must be done BEFORE creating the recurring order.

Steps:

  1. Navigate to the customer's company page

  2. Click "Edit Company" button (top right)

  3. Scroll to "Billing Automation" section

  4. Check the box: ☑️ "Enable automatic credit card charging"

  5. Click "Update Company"

Verify Payment Profile:

Before proceeding, verify the customer has a card on file:


Part 2: Create Recurring Billing Order

Navigate to New Order:

Option A: From customer page

Option B: Direct URL

Fill Out Order Form:

1. Basic Information

2. Delivery Information

3. Pricing

4. Recurring Billing Settings

CRITICAL SECTION - PAY CLOSE ATTENTION:

5. Notes (Optional)

Save the Order:

Click "Create Order" button


Part 3: Activate Recurring Billing

After creating the order, you must mark it as "Delivered" to activate auto-charging.

Steps:

  1. On the order detail page, find the "Mark as Delivered" button

  2. Click "Mark as Delivered"

  3. Confirm the action

What Happens Behind the Scenes:

When you mark as delivered:


Understanding the Billing Timeline

Example Scenario:

Today: October 13, 2025 Customer: Lynn Baksinski Equipment: 20-yard dumpster (already onsite) Next renewal: October 15, 2025 Monthly rate: $500

Timeline:

Date Event What Happens
Oct 13 (Today) Enable auto-charge on company Company.auto_charge_enabled = true
Oct 13 (Today) Create order with billing_start_date = 10/15/2025 Order created but not charging yet
Oct 13 (Today) Mark order as delivered next_billing_date = 10/15/2025, status = "delivered"
Oct 15 at 8:00 AM Automatic charge runs System charges Visa ••0209 for $500
Oct 15 at 8:01 AM Email sent Customer receives receipt
Oct 15 at 8:01 AM Next date updated next_billing_date = 11/15/2025
Nov 15 at 8:00 AM Automatic charge runs System charges again for next month

Key Points:


Monitoring Recurring Billing

Recurring Billing Dashboard:

Navigate to: https://admin.quarryrents.com/recurring_billing

This shows:

What to Check:


Troubleshooting

Problem: Order not charging automatically

Check these items:

  1. ✅ Company has auto_charge_enabled = true

  2. ✅ Order status is "delivered"

  3. ✅ Order is marked as recurring

  4. ✅ Next billing date is today or in the past

  5. ✅ Payment profile exists and is not expired

Problem: Card declined

When a card is declined:

Staff Action Required:

  1. Contact customer to update payment method
  2. Or manually process payment
  3. Once resolved, system will try again tomorrow

Problem: Card expired

When a card expires:

Staff Action Required:

  1. Contact customer to provide new card
  2. Either:

Common Scenarios

Scenario 1: Converting Existing Customer to Recurring

Customer has been paying manually, wants to switch to auto-pay:

  1. Enable auto-charge on company ✅
  2. Ensure customer has card on file ✅
  3. Create new recurring order with:
  4. Mark as delivered ✅
  5. (Optional) Archive/cancel old manual orders

Scenario 2: Equipment Already Onsite

Equipment was delivered weeks ago, customer now wants recurring billing:

  1. Determine when next payment is due (e.g., 10/15/2025)
  2. Create order with:
  3. Mark as delivered immediately
  4. System will charge on 10/15/2025

Scenario 3: New Order Starting Today

Customer orders today, wants to start recurring billing immediately:

  1. Create order with:
  2. Deliver equipment
  3. Mark as delivered
  4. System will charge at 8:00 AM on billing_start_date

Scenario 4: Customer Owes Back Payments

Equipment onsite for 2 months, customer hasn't paid, now wants recurring:

Option A: Create invoice for back-owed amount

  1. Create manual invoice for past 2 months
  2. Collect payment or mark as due
  3. Then create new recurring order for future

Option B: Include in first recurring charge

  1. Create recurring order with higher initial amount
  2. Set notes explaining first charge includes back payments
  3. After first charge, amount returns to normal

Email Notifications

The system automatically sends emails for recurring billing events:

To Customer:

  1. Payment Success (recurring_payment_receipt.html.erb)

  2. Payment Failed (recurring_payment_failed.html.erb)

  3. Card Expired (card_expired_update_required.html.erb)

To Admin:

  1. Payment Failed Alert (recurring_payment_failed_admin.html.erb)

  2. Daily Summary (recurring_charge_summary.html.erb)


Best Practices

Do's:

Always enable auto-charge BEFORE creating the orderVerify card is not expired before setting up recurring billingDouble-check billing_start_date - this determines when charges start ✅ Mark as delivered after creating the order ✅ Add notes about the recurring arrangement for future staff ✅ Check recurring billing dashboard daily for any failures

Don'ts:

Don't create recurring order without auto-charge enabledDon't forget to mark as delivered (order won't charge) ❌ Don't set billing_start_date to wrong date (will charge on wrong day) ❌ Don't assume customer has card on file (always verify first) ❌ Don't set pickup_date on recurring orders (leave blank)


Quick Reference Checklist

Use this checklist when creating a recurring order:

Pre-Setup:

Order Creation:

Activation:

Verification:


Technical Details (For Admins)

Automatic Charging Process:

Job: RecurringCardChargeJob Schedule: Daily at 8:00 AM Configuration: config/recurring.yml

Process Flow:

  1. Job runs at 8:00 AM
  2. Finds all orders where:
  3. For each order:
  4. Generates daily summary email at 9:00 AM

Payment Processor Routing:

The system automatically routes to the correct processor:

Database Fields:

Order model:

Company model:


Support

If you encounter issues with recurring billing:

  1. Check this guide first
  2. Review recurring billing dashboard
  3. Check customer's payment profile status
  4. Contact technical support with:

Changelog

Version 1.0 (October 13, 2025)