# Checkout functions

> Checkout function types and the scope each type requires.

This page is generated from the source code. A function's type is set by the [`function_type`](extension-toml.md) key in its extension config, and the app must request the corresponding required scope.

| Type | Description | Scope needed |
| :--- | :--- | :--- |
| `cart_transform` | Expands, merges or updates cart lines before pricing stages run. | `write_checkout_functions` |
| `discount` | Adds discounts to the cart (pricing stage 2). | `write_discounts` |
| `fees` | Adds extra fees (stage 4). | `write_checkout_functions` |
| `payment_methods` | Hides or reorders payment methods. | `write_checkout_functions` |
| `shipping_rates` | Adds shipping options and rates (stage 3). | `write_checkout_functions` |
