---
title: "Follow subscription law"
description: "The EU withdrawal right and button, the consent that ends it for digital content, renewal consent and reminders, online cancellation and refunds, and which of them the merchant of record handles for you. Not legal advice."
canonical_url: "https://nuxt-backend.dev/docs/ship/compliance/subscriptions"
---
# Follow subscription law

> The EU withdrawal right and button, the consent that ends it for digital content, renewal consent and reminders, online cancellation and refunds, and which of them the merchant of record handles for you. Not legal advice.

Version: nuxt-backend 0.6.x · Tab: Ship · Kind: how-to · Status: stable

Every page: [llms.txt](https://nuxt-backend.dev/llms.txt) · Skill for coding agents: [nuxt-backend](https://nuxt-backend.dev/.well-known/skills/nuxt-backend/SKILL.md)

Commands use npm; use your project's package manager.

- [Source](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/billing/lifecycle.ts)

A plan that renews meets three sets of rules: the right to withdraw from a purchase, consent and reminders around renewal, and a cancellation no harder than the sign-up. Polar sells your plans as merchant of record: it runs the checkout, lets every customer cancel in its portal, refunds, and reminds before long renewals. The package adds what Polar leaves open: the EU withdrawal button, the California renewal consent record and annual reminder, and a cancel flow in which cancelling takes one step and a save offer is one optional step. Your terms, your refund policy and your save offers stay yours.

<warning>

**Not legal advice.** This summarizes the sources linked below as they read on 2026-10-25. Consumer law is national: the EU sets a floor, and each country and US state adds its own.

</warning>

## What the rules ask

### Withdrawal in the EU

- **14 days to change your mind.** A consumer may withdraw from an online contract within 14 days, without giving a reason ([Consumer Rights Directive](https://eur-lex.europa.eu/eli/dir/2011/83/oj) Art. 9). The trader refunds within 14 days (Art. 13).
- **A service that starts at once.** If the person asks you to start during those 14 days, they still may withdraw, and pay for what they used (Art. 7(3) and 14(3)). Once the service is fully performed with their prior consent and acknowledgement, the right ends (Art. 16(a)).
- **Digital content, such as credits.** The right ends when delivery starts, if the person consented, acknowledged losing the right, and got a confirmation (Art. 16(m)).
- **The withdrawal button, since 2026-06-19.** A trader that sells through an online interface must offer a withdrawal function there for the whole withdrawal period. It is labelled "withdraw from contract here" or something as clear, leads to a confirmation step labelled "confirm withdrawal" or similar, and is followed by an acknowledgement on a durable medium, such as an email, with the date and time ([Directive (EU) 2023/2673](https://eur-lex.europa.eu/eli/dir/2023/2673/oj), new Art. 11a; [summary](https://www.gtlaw.com/en/insights/2026/5/eu-consumer-law-new-withdrawal-button-requirements-for-online-contracts)).
- **Cancellation buttons by country.** Germany has required a "cancel contracts here" button for online subscriptions since 2022 ([BGB § 312k](https://www.gesetze-im-internet.de/bgb/__312k.html)). Check the countries you sell in.

### Automatic renewal law

California's automatic renewal law ([Bus. & Prof. Code § 17600 and following](https://leginfo.legislature.ca.gov/faces/codes_displaySection.xhtml?lawCode=BPC&sectionNum=17602)), as amended from 2025-07-01 ([summary](https://btlaw.com/en/insights/alerts/2025/california-expands-automatic-renewal-law-new-requirements-now-in-effect)), asks for:

- the renewal terms, clear and close to the buy button;
- the person's express consent to those terms, and proof of it kept for 3 years, or 1 year after the contract ends if that is longer;
- an acknowledgement that says how to cancel;
- cancellation online, in the same medium as the sign-up;
- a reminder at least once a year, and notice before a price change;
- a save offer only beside a clear way to finish cancelling.

### The US at large

The FTC's "click to cancel" rule was [vacated by the Eighth Circuit](https://www.lw.com/en/insights/eighth-circuit-vacates-ftc-click-to-cancel-rule) in July 2025, before it took effect. The [Restore Online Shoppers' Confidence Act](https://www.law.cornell.edu/uscode/text/15/chapter-110) still applies: disclose the terms, get express informed consent, and offer "simple mechanisms" to stop the charges. Many states have their own renewal laws.

## Who answers for what

Polar is the seller of record, so the purchase contract is between your customer and Polar, under its [buyer terms](https://polar.sh/legal/checkout-buyer-terms). Checked on 2026-10-25:

- **Polar does:** shows the price, the renewal period and how to cancel before a renewing purchase. Every customer can cancel in its [customer portal](https://polar.sh/docs/features/customer-portal/introduction), which can't be turned off. It emails a [renewal reminder](https://polar.sh/docs/features/subscriptions/introduction) 7 days ahead for cycles of six months or more, and handles [refunds](https://polar.sh/docs/features/refunds). Its buyer terms say elapsed periods are not refunded, except where the law requires it.
- **Polar's buyer terms don't mention** the EU withdrawal right, the withdrawal button, or the consent that ends the right for digital content. Ask Polar how it meets them for your products, and get advice on whether the button belongs on your interface, since your customers use your app, not Polar's.

<table>
<thead>
  <tr>
    <th>
      The package, from 0.2.0
    </th>
    
    <th>
      You
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        <WithdrawalButton>
      </code>
      
      : the labelled button, a confirm step and an email receipt, for where Polar doesn't provide one
    </td>
    
    <td>
      Decide with Polar and your lawyer whether you need it, and where it shows
    </td>
  </tr>
  
  <tr>
    <td>
      The auto-renew consent recorded at checkout, kept 3 years, and the admin console's Billing tab to show it
    </td>
    
    <td>
      Show the renewal terms next to the buy button
    </td>
  </tr>
  
  <tr>
    <td>
      An annual renewal reminder, where Polar's own doesn't reach (cycles under six months)
    </td>
    
    <td>
      Keep its words accurate
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        <CancelFlow>
      </code>
      
      : cancelling in one step, with an optional question and at most one save offer
    </td>
    
    <td>
      Keep save offers honest, and never let one block the cancellation
    </td>
  </tr>
  
  <tr>
    <td>
      Cancellation, pause and resume through <code>
        useBilling
      </code>
    </td>
    
    <td>
      Put the cancel link where people look for it
    </td>
  </tr>
  
  <tr>
    <td>
      A past-due notice in <code>
        <BackendNotices>
      </code>
    </td>
    
    <td>
      Decide how long benefits last while a payment is past due, in Polar's settings
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      Write your terms and refund policy
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      Ask for the digital-content consent before credits are used, if you rely on it
    </td>
  </tr>
</tbody>
</table>

## Add the lifecycle duties

<steps level="3">

### Turn them on

Pass `lifecycle` to `setupBilling`:

```ts [backend/billing.ts]
import { setupBilling } from 'nuxt-backend/billing'
import { components } from './_generated/api'
import { audit } from './audit'
import { catalog } from './billing.generated'
import { email } from './email'

export const billing = setupBilling(components, {
  catalog,
  email,
  audit,
  lifecycle: {
    renewalReminders: true,
    withdrawal: true,
  },
})
```

- **renewalReminders** emails the yearly reminder California asks for, on plans whose cycle Polar's reminder doesn't cover: the `renewalReminder` email, to the billing managers, at the first renewal eleven months or more after the purchase, then once a year. It names the plan, the price and its interval, the next renewal date and where to cancel.
- **withdrawal** turns on the withdrawal button (`getWithdrawal` and `withdraw`) and its `withdrawalReceipt` email.

The auto-renew consent proof needs no switch: each renewing checkout keeps what it showed (the plan, the price and its interval, the [terms](https://nuxt-backend.dev/docs/ship/compliance/privacy) version the person agreed to, who and when), confirmed when its subscription starts (or when it upgrades the free plan's subscription in place) and deleted three years later. An erasure keeps it, the account's id replaced by a pseudonym, since the law asks for it.

### Show the withdrawal button

Put it where people manage their plan, for the whole withdrawal period:

```vue [app/pages/settings/billing.vue]
<script setup lang="ts">
definePageMeta({ auth: true })
</script>

<template>
  <section aria-labelledby="plan">
    <h2 id="plan">
      Your plan
    </h2>
    <WithdrawalButton />
    <CancelFlow />
  </section>
</template>
```

The button reads "Withdraw from contract here", asks to confirm with "Confirm withdrawal", and emails a receipt with the date and time. You should see it for a purchase inside its 14 days, as a billing manager, and not after; it renders nothing otherwise. The 14 days run from the purchase: a plan bought from the free plan counts from its checkout, not from when the free plan began. `getWithdrawal` answers the latest purchase with its `endsAt`, and the button hides itself once that passes. The plan ends at once. The refund is yours to send, less what the person used: the withdrawal records `billing.contract_withdrawn` on the activity trail, and `billing.refundOrder` sends it. Its words are the `withdrawal` labels, so you can translate them ([Change copy and labels](https://nuxt-backend.dev/docs/build/ui/customize/labels)).

### A section of your own around it

`useWithdrawal()` reads the same period without the button, so a heading and a sentence of your own show only while it is open:

```vue [app/components/WithdrawalSection.vue]
<script setup lang="ts">
const withdrawal = useWithdrawal()
// The app's language, not the visitor's, so the server's HTML and the browser's agree.
const { locale } = useLabels('withdrawal')
const day = (date: Date) => new Intl.DateTimeFormat(locale.value ?? 'en', { dateStyle: 'long' }).format(date)
</script>

<template>
  <section v-if="withdrawal.isOpen.value" aria-labelledby="withdraw-title">
    <h2 id="withdraw-title">Changed your mind?</h2>
    <p>You can withdraw from this purchase until {{ withdrawal.endsAt.value && day(withdrawal.endsAt.value) }}.</p>
    <WithdrawalButton />
  </section>
</template>
```

`period` is the open purchase (`{ subscriptionId, plan, startedAt, endsAt }`), `null` without one and `undefined` while it loads; `isOpen` and `endsAt` say the same in short, and close by themselves when the period ends. `withdraw()` withdraws from it, as the button's confirmation does: it resolves with when the withdrawal was received (`withdrawnAt`) and rejects with the refusal, which `error` also holds.

### Keep cancelling short

Cancelling takes one step. Where you turn save offers on, `<CancelFlow>` adds one optional step: a question, then the offer for that reason. Every screen has a button that finishes the cancellation, and no offer shows where it would stand in the way of a legal right ([Handle cancellations](https://nuxt-backend.dev/docs/build/growth/engage/cancel-flow)).

</steps>

## What an administrator sees

The admin console's **Billing** tab shows the records these duties leave, newest first, the latest 50 of each:

- **Save offers:** each offer the cancel flow made, for which reason, what it gave, and whether the person took it.
- **Withdrawals:** who withdrew from which plan, and when. Send each refund from here, with `billing.refundOrder`, within 14 days.
- **Renewal consent proofs:** what each renewing checkout showed (the plan, the price and its interval, the terms version) and who agreed, once its subscription started.

A billing entity's id, a workspace's or an account's with `billTo: 'user'`, narrows all three to that customer: what you show a regulator or a customer who asks. The tab reads `getBillingConsole`, which `backend/billing.ts` re-exports, admin-only like the webhook log.

## Refunds

Polar refunds orders from its dashboard or API. Refunding a subscription's order returns the money, but doesn't end the subscription: cancel it too. A withdrawal within 14 days means a refund, less what the person used when they asked you to start at once. Put your refund policy in your terms, and keep it consistent with Polar's buyer terms.

## Digital content bought once

A one-time purchase of digital content, such as a comic issue, an e-book or a credit pack, has a withdrawal right of its own. It ends when delivery starts, but only if the buyer agreed to that first. Without that consent, they may withdraw within 14 days and owe nothing for what they already read. The helpers below are in `nuxt-backend/billing`.

### What the rule asks

The right of withdrawal ends when delivery of digital content starts if all three hold ([Directive 2011/83/EU](https://eur-lex.europa.eu/eli/dir/2011/83/oj) Art. 16(m), as amended by Directive (EU) 2019/2161):

1. The buyer gave **prior express consent** to delivery starting within the 14 days.
2. The buyer **acknowledged** that they lose the right of withdrawal by it.
3. The seller sent a **confirmation** on a durable medium, such as an email, that records both (Art. 8(7)).

A pre-ticked box is no consent. Without all three, the buyer may withdraw and owes nothing for the content (Art. 14(4)(b)).

### Ask for it at checkout

Show an unticked checkbox beside the buy button, and refuse the checkout until it is ticked. The example below uses the commerce adapters, so it applies when `BILLING_PROVIDER` is `stripe`, `dodo` or `creem`: `provider` is what `commerceProviderFromEnv` returns, which is `null` for Polar, the default. `recordDigitalContentConsent` refuses anything but `true`, and `consentMetadata` turns the proof into checkout metadata. You pass that metadata to the checkout yourself; the adapter adds nothing to it. The provider keeps it with its record of the sale, and `order.paid` carries it back. A refund or a dispute names only the order, so keep the proof on the order row you store from `order.paid`.

```ts [backend/purchases.ts]
import { consentMetadata, DIGITAL_CONTENT_CONSENT_TEXT, recordDigitalContentConsent } from 'nuxt-backend/billing'

const consent = await recordDigitalContentConsent({ accepted: args.consent, text: DIGITAL_CONTENT_CONSENT_TEXT })
const session = await provider.createCheckout({
  productId: issue.productId,
  kind: 'one_time',
  customer: { entityId, email },
  successUrl: `${siteUrl}/library`,
  metadata: consentMetadata(consent),
})
```

The proof holds the time, the version of the wording, and a hash of the text shown. If you translate the text, pass the translation you showed. Change `DIGITAL_CONTENT_CONSENT_VERSION` whenever the wording changes.

### Confirm it

The merchant of record's receipt confirms the purchase, but it may not mention the consent. Send your own order confirmation when `order.paid` arrives, and name what the buyer agreed to: immediate access, and the loss of the withdrawal right. `consentFromMetadata(event.order.metadata)` reads the proof back.

## Limits

- **Who must show the button is unsettled.** Polar is the seller, and your app is the interface. The package gives you the button. Whether you must show it is a question for Polar and your lawyer.
- **Save offers.** California and Germany both limit what may stand between a person and the cancellation. Test the flow against both.
- **Other countries and states.** This page covers the EU, Germany as an example, California and US federal law. Check the others you sell in.

## Related

- [Handle cancellations and win people back](https://nuxt-backend.dev/docs/build/growth/engage/cancel-flow): the cancel flow and save offers.
- [Subscriptions](https://nuxt-backend.dev/docs/build/billing/subscriptions): plans, changes, pauses and orders.
- [Polar](https://nuxt-backend.dev/docs/services/polar): the merchant of record's account and settings.
- [Privacy, GDPR and cookies](https://nuxt-backend.dev/docs/ship/compliance/privacy): the terms page.
- [Compliance](https://nuxt-backend.dev/docs/ship/compliance): who answers for what.


## Sitemap

See the full [sitemap](https://nuxt-backend.dev/sitemap.md) for all pages.
