• Pricing
  • Blog
Log inBook a demo
Blog
November 3, 2026

Let customers pay several months upfront without changing their plan

Sell 1 to 60 billing periods in one payment, with card, OXXO or any other checkout method, while the subscription keeps its interval.

G
Guido Irigoyen·@guidooirigoyen

Most subscriptions renew themselves: a card is charged every month and nobody thinks about it. But a good share of customers don't fit that pattern.

  • Cash payments can't renew. In Mexico, many buyers pay with OXXO, a voucher they pay in cash at a store. There is nothing to charge next month, so a monthly subscription paid with OXXO ends after the first month unless the customer comes back and pays again.

  • Some customers prefer to pay once. A company with an approved budget would rather pay six months on one invoice than approve a charge every month. A freelancer who just got paid wants to cover the next quarter while they have the money.

  • Some access shouldn't renew at all. A three-month course or a seasonal tool should end on its own when the paid time is over.

The usual workarounds are a new plan with a six-month interval, a manual invoice, or a coupon that discounts the next months to zero. Each one duplicates your catalog or leaves billing out of sync with what the customer actually paid.

Pay up to 60 periods in one payment#

A subscription can now be paid 1 to 60 billing periods in advance, in one payment, with any checkout method.

The interval never changes. A monthly subscription paid six months in advance is still monthly: each paid month renews with a paid $0 invoice, features and credits reset on their usual schedule, and nothing is charged for the plan until the paid periods run out. Usage, seats and add-ons are not prepaid and still bill on their usual schedule.

After the last paid period, the subscription renews normally, or ends on its own if you ask for that.

How to set it up#

Charge several periods in the first payment#

subscribe.ts
const subscription = await commet.subscriptions.create({
  customerId: "user_123",
  planCode: "pro",
  prepaidPeriods: 6,
});

if (subscription.checkoutUrl) redirect(subscription.checkoutUrl);

The first payment covers six periods of the price's interval, including the current one: six months on a monthly price, six quarters on a quarterly one.

Add periods to an active subscription#

pay-ahead.ts
const { checkoutUrl } = await commet.subscriptions.createPrepaidPeriodsCheckout({
  id: "sub_123",
  periods: 6,
});

Send the link to the customer. It opens a hosted checkout for those periods, which are added after the last paid one. A new link replaces any previous unpaid one.

From the dashboard, open the subscription, choose Pay in advance, enter the number of periods and copy the payment link. The subscription detail shows Paid through with the date the paid periods end.

Sell a fixed term that ends on its own#

fixed-term.ts
await commet.subscriptions.create({
  customerId: "user_123",
  planCode: "pro",
  prepaidPeriods: 3,
  cancelAtPeriodEnd: true,
});

The cancellation is scheduled from creation, and the subscription ends after the third month without renewing with any payment method.

How each period is priced#

Each period costs the price of the subscription's interval for the buyer's country and currency, minus the discount of the Offer phase that applies to it.

Pricing
Plan:    $10/month
Offer:   50% off for 2 months
Periods: 3

Period 1 → $5
Period 2 → $5
Period 3 → $10
Payment  → $20

The checkout tells the buyer what happens next: "3 months · then $10.00/mo" when it renews, or "3 months · one-time payment, doesn't renew" when it doesn't.

Examples#

Six months with OXXO. A customer in Mexico pays six months of a monthly plan with one OXXO voucher. The subscription stays active for six months and charges nothing for the plan in between. Since OXXO can't be charged again and the customer has no card saved, Commet schedules the cancellation at the end of the paid periods. If the customer adds a card before then, from the customer portal or a payment method update link, the subscription renews normally with it.

A budget paid by quarter. A B2B customer on a $200 monthly plan pays three months at once to fit their purchasing process. They get one $600 payment, the plan stays monthly, and their usage overage still appears on the monthly invoice.

A course with a start and an end. A coding school sells three months of access to its platform. It creates the subscription with prepaidPeriods: 3 and cancelAtPeriodEnd: true. The student pays once, has access for three months, and the subscription ends with subscription.canceled.

Paying ahead mid-subscription. A customer already on a card plan wants to cover the rest of the year. You send them a link for the remaining months. The payment is added after the last paid period, and the card is not charged until those months run out.

What to know#

  • Only paid recurring prices. One-time prices and free plans return 400.

  • Free trials don't combine with paying in advance: the price's trial is skipped.

  • Canceling doesn't refund paid periods; a scheduled cancellation takes effect after the last one.

  • Pausing is rejected while paid periods remain.

  • Changing plan or interval turns the unused paid periods into customer credits at the price paid.

  • Plans and subscriptions can also bill every six months with the semiannual interval, if what you want is a new price rather than an upfront payment.

Start#

If you sell in markets where cash payments matter, or your customers ask to pay ahead, this is a parameter on the subscription you already create. Read Pay in Advance for the full reference and One-Time Payments for fixed terms.

Subscription billing built for developers and agents

Get startedBook a demo

Accept global payments, handle usage-based pricing, subscriptions, and seats — without building your own infrastructure.

Frameworks

  • Next.js
  • Remix
  • Nuxt
  • SvelteKit
  • Astro
  • Express
  • Hono
  • Django
  • FastAPI

Resources

  • Documentation
  • Guides
  • Blog
  • Templates
  • Changelog
  • Glossary
  • Billing for AI models

Company

  • Solutions
  • About
  • Open Source

Compare

  • Stripe Billing
  • Orb
  • Chargebee
  • Lago
  • Autumn
  • Yuno

AI

  • Commet Agents
  • MCP Server
  • Skills
  • Skills on GitHub
  • Claude Code
  • Codex
  • Cursor
Follow us
© 2026 Commet Co.TermsPrivacy PolicyCookie Policy