
Checkout Sessions API
Create checkout sessions programmatically.
Preview Checkout
Calculate pricing and taxes before creating a session.
Payment Methods
Supported payment methods and configuration.
Integration Guide
Step-by-step guide to integrating checkout.
Checkout links generated through the Checkout Sessions API are not reusable. They expire after 24 hours, or after 15 minutes if
confirm: true is set. Generate a fresh session for each customer and each payment attempt.Adaptive Currency
Adaptive Currency lets customers pay in their preferred local currency, improving trust and conversion rates. When enabled, customers see a currency selector on checkout. The price converts to their chosen currency at live FX rates. If the product has Purchasing Power Parity enabled, the PPP-adjusted price converts instead of the base price. If Charm Pricing is enabled, the converted amount rounds to a clean ending like 49.99.
Adaptive Currency
Supported currencies, conversion fees, and refund handling.
Multi-Language Checkout
Checkout supports 24 languages. Customers can switch languages directly on the page, and UI text, labels, and system messages are localized. In Arabic and Hebrew, checkout renders right to left and the whole layout mirrors. Email addresses, codes, and phone numbers keep their natural reading order.
Supported Languages
To force a specific language, set
customization.force_language when creating a checkout session. See the Checkout Sessions API for details.
Automatic Tax Calculation
Taxes are calculated automatically based on the customer’s billing location, ensuring compliance with GST, VAT, and sales tax requirements. Tax rules apply based on the customer’s country and region where applicable. The tax amount updates automatically when the customer changes their country or updates their address. The final tax breakdown is shown clearly before payment.Business Tax ID Support
For B2B transactions, checkout allows customers to enter their Business Tax ID (e.g., VAT or GST number). When entered, the tax ID is validated in real-time and applicable tax exemptions or reverse-charge rules are applied automatically.
Discount Codes
Customers can apply discount or promo codes you’ve created in the dashboard. The discount is validated instantly and the updated price is shown. When Purchasing Power Parity is enabled on a product, the discount applies to the PPP-adjusted price, not the base price.
discount_codes accepts an array of up to 20 codes that stack in order. The singular discount_code field is deprecated but still works for backward compatibility.Discount Codes
Create and manage discount codes.
Validate Discount by Code
Look up and validate discounts using code names.
Smart Address Collection
Checkout supports flexible address entry to balance speed, accuracy, and global coverage.Options
Minimal Address Mode
For maximum conversion, enable minimal address collection to reduce checkout friction. Whenminimal_address is set to true, checkout only collects:
- Country — always required for tax determination
- ZIP/Postal code — only in regions where it’s necessary for sales tax, VAT, or GST calculation

Full address collection is the default, unless
feature_flags.single_page is true, which turns minimal_address on by default. Enable minimal_address for digital products and SaaS flows where complete billing details aren’t required.Phone Number Collection
Control whether the phone number field appears on checkout and whether it’s required.Terms Consent

How It Works
Terms consent has two parts. You add your policy links to a brand once, then you turn the checkbox on for each checkout session that needs it:- You add a Terms of Service URL, and optionally a Refund Policy URL and a Privacy Policy URL, to a brand.
- You create a checkout session with
feature_flags.require_terms_acceptanceset totrue. - The checkout page shows a checkbox with links to the brand’s policies. The customer must tick it before they can continue.
- Dodo Payments records the acceptance with the payment. You see it in the dashboard, in the Payments API, and in payment and dispute webhooks.
Adding Policy Links to a Brand
Each brand has its own policy links, so a business with several brands can show different terms for each one. The primary brand also has its own links. Set up policy links separately in test mode and live mode.From the Dashboard
1
Open the Brand
Go to Settings → Business. In the Brands Under [Your Business] panel, open the
... menu next to the brand and select Edit.2
Enter the Policy Links
In the Policies section, fill in the links:
- Terms of Service URL (required to ask customers to accept your terms at checkout)
- Refund Policy URL (optional)
- Privacy Policy URL (optional)
http:// or https:// and be 500 characters or fewer. A Terms of Service URL is required to save any policy links, so a brand can’t have only a refund or privacy link.
3
Save the Brand
Save the brand. The links apply to every new checkout session for this brand that requires terms acceptance.
After you set a Terms of Service URL, you can change it but you can’t remove it. The refund and privacy links can be cleared at any time.
Through the API
To set the links through the API, send them toPUT /brands/{id}/policies. Use the brand ID of a secondary brand, or your business ID for the primary brand. terms_of_service is required. refund_policy and privacy_policy are optional, and an empty value means no link.
cURL
GET /brands/{id}/policies. It returns 404 with the message The brand has no policy links. when the brand has none.
The PUT request returns these errors:
The policy endpoints are not in the SDKs yet, so call them over HTTP. The brand list and brand detail responses don’t include policy links.
Changing Your Policy Links
Each save adds a new version of the brand’s links, and saved versions are not changed. New checkout sessions show the latest links. A customer who already accepted keeps the version they accepted, so the record on their payment still shows the links that were on the checkout page when they paid. Saving the same links again creates no new version.Requiring Acceptance on a Checkout Session
To show the checkbox, setfeature_flags.require_terms_acceptance to true when you create the checkout session:
cURL
checkout_url in the response. There is no dashboard setting for this flag. You turn it on for each checkout session through the API.
The API checks the flag when you create the session:
The
confirm: true combination is rejected because confirm skips the checkout page, and the checkbox is on that page.
For a product collection checkout, the brands of all active products in the collection count when the API checks for a Terms of Service URL.
What the Customer Sees
The checkbox reads “I agree to [brand]‘s Terms of Service”, followed by each other policy the brand has. Each policy name is a link that opens in a new tab. Opening a link does not tick the box. The label names only the links the brand has:
The checkbox starts empty, and the customer must tick it to pay. The label is translated into the checkout’s language.
- Two-Page Checkout
- Single Page Checkout
The checkbox sits below the billing address and the Purchasing as a business checkbox, above Continue to Payment. The button stays disabled until the customer ticks the box.

- Product cart: all products in
product_cartmust belong to one brand, and the API rejects a cart that mixes brands. The customer sees one checkbox, for that brand. - Product collection: a collection can include products from more than one brand. The page shows one checkbox for each brand in the collection that has policy links, and the customer must tick all of them to pay.
Viewing the Acceptance Record
Dodo Payments records each acceptance on the payment: the version of the policy links the customer accepted and the time they accepted. It also stores the customer’s IP address and browser details with the record, for use as dispute evidence. The IP address and browser details are not returned by the API.In the Dashboard
- Payment details: go to Transactions → Payments and open the payment. The Terms consent section shows Accepted at and the Policies the customer accepted.
- Dispute details: open the dispute. Terms accepted shows the time, and Accepted policies lists the links.
In the API and Webhooks
The payment object carries three fields for terms consent. They are in theGET /payments/{payment_id} response and in the payment.succeeded, payment.failed, payment.processing, and payment.cancelled webhooks. They are not in the payment list response.
The policy links the customer accepted, one item for each brand. Empty when
terms_accepted is false. Each item has brand_id, terms_of_service, refund_policy (or null), and privacy_policy (or null).GET /disputes/{dispute_id} and the dispute.* webhooks, carries terms_accepted_at and accepted_policies with the same shape. It has no terms_accepted field.
Subscriptions
The customer accepts once, on the first payment of a subscription. Renewals, payment retries, and plan changes ask for no new acceptance. Their payments show the acceptance from the first payment, including the version of the links the customer accepted then. A dispute on a renewal therefore has the same record as a dispute on the first payment. A subscription whose first payment was made without terms consent showsterms_accepted: false on every payment.
Where the Checkbox Does Not Appear
The checkbox shows only on checkout sessions created withrequire_terms_acceptance: true. It does not show on:
- Payment links. A URL parameter can’t turn it on.
- Checkout sessions created with
confirm: true, which the API rejects with the flag on. - Subscriptions and payments created without a checkout session.
- Abandoned cart recovery checkouts.
- Plan changes in the Customer Portal.
Custom Fields
Collect additional information from customers during checkout by defining custom form fields. This is useful for gathering company name, team size, referral source, or any other business-specific data.Available Field Types
Example
Customer responses are automatically included in webhook payloads (
payment.succeeded, subscription.active) and API responses via the custom_field_responses array. You can define up to 5 custom fields per checkout session.Custom Fields Guide
Custom field configuration and accessing responses.
Privacy Policy & Terms Acceptance
To ensure legal and compliance transparency:- Privacy Policy and Buyer Terms links are clearly displayed on checkout
- Customers explicitly acknowledge these before completing payment
This helps meet global consumer protection and data privacy requirements including GDPR compliance.
Product Collections
Product Collections enable a unified checkout experience where customers view and select from multiple related products (e.g., Starter, Pro, Enterprise plans) in a single checkout. When using a collection, all active products in the collection are displayed. The first product is pre-selected, and customers can compare options before choosing.Product Collections
Create and manage product collections.
Monthly Price for Yearly Plans
Show customers what a yearly plan costs per month. A yearly plan priced at $677.00 also shows $56.42/mo · billed annually under its price. The customer still pays the yearly price. To turn it on, go to Settings → Pricing and turn on Show yearly prices as monthly. The change can take up to a minute to appear on checkout.- Plans it applies to: Subscriptions billed every year or every 12 months. Other plans and one-time products show no monthly price.
- How it is calculated: The yearly price of one plan, after discounts, divided by 12 and rounded to the nearest cent or smallest currency unit. Add-ons, tax, and quantity are not included.
- Adaptive Currency: The monthly price uses the converted price that the customer sees.
Single Page Checkout
Single page checkout collects contact details, billing details, and payment on one page, with no separate payment step. With fewer steps and fewer fields before payment, it is built to reduce drop-off and complete more payments than the two-page checkout. To turn it on for a session, setfeature_flags.single_page to true. To keep a session on the two-page checkout, set it to false. If you leave it unset, Dodo Payments selects the flow. For a payment link, add ?singlePage=true. Overlay and inline checkout follow the flag on the session.
For phones, Express Checkout puts Apple Pay and Google Pay at the top of the single page checkout.
Single Page Checkout
How it reduces drop-off, plus layout, address collection, embedded events, and behavior after payment.
Checkout Session Configuration
Control checkout behavior using the Checkout Sessions API:After payment, customers are redirected to your
return_url with query parameters appended automatically — including payment_id or subscription_id, status, email, and license_key (if applicable). See the Checkout Sessions guide for the full list.Checkout Sessions API
Complete API reference for checkout sessions.
Checkout Integration Guide
Step-by-step guide to integrating checkout.
Theme Customization
Customize the checkout page appearance to match your brand using thecustomization.theme_config parameter. Configure colors, fonts, border radius, and button text for both light and dark modes.
This section covers the server-side API, which uses property names such as bg_primary. A theme set on the session applies to hosted, overlay, and inline checkout. Checkout SDK 2.0.1 removes the client-side themeConfig option, which used property names such as bgPrimary. See Overlay Checkout.

Design & Theme Customization
Configure themes visually from the dashboard with pre-built themes, typography, colors, and live preview.
Theme Configuration Options
Color Configuration (Light/Dark Mode)
Each mode supports these color properties:All color fields accept standard CSS color formats:
- Hex:
#fff,#ffffff,#ffffffff - RGB/RGBA:
rgb(255, 255, 255),rgba(255, 255, 255, 0.5) - HSL/HSLA:
hsl(120, 100%, 50%),hsla(120, 100%, 50%, 0.5) - Named colors:
red,blue,transparent
