Skip to Content
Docs

Subscriptions

Run subscriptions on Pay.com's engine or one you connect, with one control plane for checkout, entitlements, and reporting.

Run recurring billing on Pay.com's engine or on an external engine you already use. Whichever engine runs a subscription, your checkout, entitlements, and reports work from the same subscription, so you can change engines without rebuilding the rest.

One control plane

Every subscription goes through one control plane, whichever engine runs it. It works with Commerce's checkout or your own, and whether you sell or Pay.com sells as the merchant of record.

  • Pay.com's engine schedules renewals, collects the payments, retries the failures, and issues the invoices.
  • An external engine, such as Stripe Billing, connects through an adapter. See Choose a subscription engine.

One subscription object

Each subscription is one sub_ object with one set of events, whichever engine runs it. It records its seller, its engine, who owns each job, whether the customer has access, and the next payment with its last day to cancel. Amounts are in the smallest currency unit, so 1999 is $19.99 USD.

curl https://api.sandbox.pay.com/v1/subscriptions/sub_684790996696828928 \
  -u ':sk-pay-com-sandbox-…'

See Retrieve a subscription in the Commerce API reference for every field.

Billing dates

Billing dates follow these rules:

  • A subscription keeps its billing anchor, the day of the period it renews on.
  • After a late recovery, Pay.com doesn't charge for the periods the subscription missed. The next period ends at the first renewal date after the payment. See Failed renewals.
  • Periods run to the exact time they started.
  • The last day to cancel is shown to the customer, and canceling by then stops the next charge. On a direct debit, it's the day before the debit is submitted. The subscription returns it in next_payment.cancel_by.

Trials, plan changes, and canceling

Trials take a payment method by default, customers get reminders before a trial ends and before a yearly renewal, plan changes show their proration first, and canceling is online. See Trials, plan changes, and canceling.

Start and manage subscriptions

Start a subscription at checkout with mode set to subscription, or from your server with a recurring price and a saved payment method. The Subscriptions page in the Pay.com dashboard is shared with Payments, so merchants who use Payments alone manage the same subscriptions.

What you can measure

Insights shows MRR and ARR with their movements, subscribers and seats, churn, retention, trials, recovery, and cohorts, each with its definition. See Insights and metrics.

Was this page helpful?