RideKit
Docs/Reference/US: rider subscriptions under automatic-renewal law (click-to-cancel)

US: rider subscriptions under automatic-renewal law (click-to-cancel)

Built: 2026-11-04. Written for US operators and whoever maintains the code.

Rider subscriptions renew themselves, so in the US they fall under two sets of rules:

  • the federal Restore Online Shoppers' Confidence Act (ROSCA);
  • the states' automatic renewal laws. California's is the strictest. Its 2024 amendments took effect in July 2025.

The FTC's own "click-to-cancel" rule was set aside in court in 2025, but ROSCA and the state laws require the same things in practice. RideKit does all five of these.

Requirement How RideKit meets it
Clear terms before billing The app shows the terms on the plan card before the rider subscribes: the price, how often it renews, when the first charge comes (after any free trial or partner-code days), and how to cancel.
Express, informed consent The rider must tick I agree to automatic renewal on these terms before subscribing. The server refuses a subscription whose consent does not match the exact terms with subscription_consent_required. The consent is kept with the terms, their hash, the time, the IP and the device.
Easy online cancellation One tap: Account → Subscription → Cancel. Cancelling gives a reference (CX-XXXXXXXX), which shows on screen and in a push. The benefits last to the end of the paid period, and nothing more is taken.
Trial reminder Sent trialReminderDays before a free trial turns paid (US default 7; California requires 3 to 21). The reminder gives the date and the amount.
Price change notice A higher plan price is told to every subscriber with the renewal it starts on. It is charged only once the notice period has passed (priceNoticeDays, US default 14; California requires 7 to 30). Until then the rider pays the price they agreed to, and a lower price applies at once. The app shows the coming price.
Yearly reminder Once a year, a push says the subscription renews, the date and the amount, and that it can be cancelled in one tap.

Market config autoRenewal (on in the US)

Field US default Meaning
enabled true Consent is required, cancellations get a reference, and the notices below are sent.
trialReminderDays 7 Days before a free trial turns paid that the reminder goes out. Markets where this is off keep 2.
priceNoticeDays 14 Notice given before a higher price is charged. 0 means it applies at the next renewal.
annualReminder true Turns the yearly reminder on.

How it works

POST /subscriptions/terms {planId, code?} returns:

  • the terms: plan, price, currency, period, the free days for this rider, renews, and that cancellation is in the app at any time;
  • the terms' SHA-256 hash.

The app shows the terms in the rider's language. POST /subscriptions must carry that hash as consentHash.

The consent covers the terms, not the wording. A different language gives the same hash, but a different price or trial does not. The row in subscription_consents is the proof of consent.

Agreed price

rider_subscriptions.agreed_price_minor holds the price the rider agreed to. It is set when they subscribe and updated at each renewal.

When the plan price rises, the subscription sweep (every 10 minutes) does this:

  1. It notifies each subscriber once (price_notice_minor, price_noticed_at) with the renewal date the new price starts on.
  2. It renews at the agreed price until the notice period has passed. See renewalPrice in auto-renewal.ts.

Records

All of these are subscription events, shown in the operator's subscriber list and report:

  • the consent;
  • the cancellation, with its reference;
  • price_notice, with the date the new price applies;
  • annual_reminder;
  • each renewal and the price charged.

The subscribers list also shows when the rider agreed to the renewal terms and the cancellation reference.

These rules come from state laws. Check the numbers for the states you operate in, for example New York's 15–45-day annual notice for some contracts, and have counsel review your terms.

Code

  • backend/src/subscriptions/auto-renewal.ts: config, terms and hash, renewalPrice, priceEffectiveOn, cancellationRef and annualReminderDue. Spec: auto-renewal.spec.ts.
  • backend/src/subscriptions/subscriptions.service.ts:
    • renewalTerms;
    • consent at subscribe;
    • the reference on cancel;
    • in the sweep: the price-aware renewal, the configurable trial reminder, and renewalNotices (price notice and yearly reminder).
  • Push copy: subscription_cancelled, subscription_price_change and subscription_annual_reminder, in 11 languages. The trial reminder now gives the date.
  • Migration 1700000197000-AutoRenewal adds the subscription_consents table and the columns on rider_subscriptions.
  • Rider app: app/(app)/subscription.tsx, with the terms card and checkbox, the cancellation reference card and the price-rise notice.
  • Admin: the subscribers list shows when the rider consented and the cancellation reference.
source: docs/us-subscription-auto-renewal.md (ships identically in the product zip)