Skip to main content
Checkout is where a customer picks a product, enters their payment and billing details, and pays. Polar hosts the checkout page, calculates tax for the customer’s location, and handles the payment. Every purchase goes through a checkout session: a short-lived object holding one purchase attempt. There are two ways to create one. A Checkout Link is a reusable URL that creates a fresh checkout session each time someone opens it. Always share the link, never the session URL behind it. Create a Checkout Session yourself when you know who the customer is. Pass their external_customer_id, prefill their email, or attach metadata, then redirect them to the session’s url. You can offer several products in one checkout. The customer picks one of them; products aren’t bundled into a single order.

What a checkout creates

When the checkout succeeds, Polar:
  1. Finds or creates the customer.
  2. Creates an order for the payment.
  3. Creates a subscription, if the product is recurring.
  4. Grants the product’s benefits.
A session moves through the statuses open, confirmed, and then succeeded or failed. Sessions that are never completed become expired. The dashboard lists every session with its status (Open, Confirmed, Succeeded, Failed, Expired) under Sales → Checkouts.

Customizing checkout

  • Discounts can be preset on a link or session, or entered by the customer as a code. See Discounts.
  • Custom fields collect extra information, like a company name or a terms checkbox. See Custom fields.
  • Ad-hoc prices set a price for a single session without changing your catalog. See Ad-hoc prices.
  • Embedded checkout opens the checkout on your own site instead of redirecting. See Embedded checkout.

In the dashboard, CLI or your agent

Checkout Sessions are created from your backend with the SDK or API. Checkout Links and the list of sessions also work from the dashboard, the CLI or your agent:

Learn more