> ## Documentation Index
> Fetch the complete documentation index at: https://firmly.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Express Checkout

> Place an order with Klarna, PayPal, Google Pay or Apple Pay

Express checkout lets a shopper pay with a wallet or an alternative payment method instead of entering card details. Each gateway advertises itself on the cart's `payment_method_options`, the client runs the wallet's own ceremony (Klarna widget, PayPal approval, Google Pay or Apple Pay sheet), and one of the express endpoints places the order with the merchant.

All express endpoints live under `POST /api/v1/domains/{domain}/express/{gateway}/...` on `api.firmly.work`, authenticated with the `x-firmly-authorization` device token from [Browser Session](https://firmly.mintlify.site/api-reference/authentication/browser-session.md). Apple Pay merchant validation is the one exception: it is served by the wallet service under `/api/v1/wallets/apple-pay/validate-merchant`.

## Discovering support

A client learns which gateways a merchant accepts from the cart response. Each accepted gateway appears in `payment_method_options` with a `type`, a `wallet`, and a `config` the client uses to set up the wallet. If an entry is absent, the merchant does not accept that gateway: do not show its button.

| Gateway | `type` | `wallet` | `config` |
| - | - | - | - |
| Klarna | `Klarna` | `klarna` | `express_enabled`, `clientId` |
| PayPal | `PayPal` | `paypal` | PayPal SDK settings: `clientId`, `merchantId`, `sandbox`, `intent`, `integration_version`, `mode` |
| Google Pay | `GooglePay` | `google_pay` | A ready-to-use Google Pay `PaymentDataRequest` |
| Apple Pay | `ApplePay` | `apple_pay` | `country_code`, `supported_networks`, `merchant_capabilities` |

## Flows

**Klarna**: [Start](https://firmly.mintlify.site/api-reference/payment/express-checkout/start-klarna.md) creates the Klarna session (a widget `client_token`, or a redirect `url`), [Authorize](https://firmly.mintlify.site/api-reference/payment/express-checkout/authorize-klarna.md) confirms the Klarna authorization, and [Complete Order](https://firmly.mintlify.site/api-reference/payment/express-checkout/complete-order-klarna.md) places the order.

**PayPal**: [Start](https://firmly.mintlify.site/api-reference/payment/express-checkout/start-paypal.md) creates the PayPal order and returns the `paypal_token`, the buyer approves on PayPal, [Authorize](https://firmly.mintlify.site/api-reference/payment/express-checkout/authorize-paypal.md) pulls the PayPal address onto the cart (optional), and [Complete Order](https://firmly.mintlify.site/api-reference/payment/express-checkout/complete-order-paypal.md) places the order.

**Google Pay**: a single call. The Google Pay sheet mints a token client-side from the cart's `config`, and [Complete Order](https://firmly.mintlify.site/api-reference/payment/express-checkout/complete-order-google-pay.md) places the order. See [Integrate Google Pay](https://firmly.mintlify.site/api-reference/payment/express-checkout/google-pay-integration.md) for the client-side steps.

**Apple Pay**: [Validate Merchant](https://firmly.mintlify.site/api-reference/payment/express-checkout/validate-merchant-apple-pay.md) answers the `onvalidatemerchant` event, the buyer authorizes in the Apple Pay sheet, and [Complete Order](https://firmly.mintlify.site/api-reference/payment/express-checkout/complete-order-apple-pay.md) places the order with the `PKPaymentToken`.

## Preparing the cart

Express checkout completes an already-prepared cart. For a physical-goods order the cart must carry a shipping address and a selected shipping method before the complete call, or it fails with `ErrorMissingShippingMethod`. PayPal authorize pulls the buyer's address from PayPal. The Google Pay and Apple Pay sheets can collect the address: pass it as `google_pay_address` or `apple_pay_address` on the complete call, or persist it first with [Set Shipping Info](https://firmly.mintlify.site/api-reference/simple-cart-api/checkout/set-shipping-info.md) and [Set Shipping Method](https://firmly.mintlify.site/api-reference/simple-cart-api/checkout/set-shipping-method.md).

## Related

* [Complete Order (Credit Card)](https://firmly.mintlify.site/api-reference/payment/complete-order-v1.md): the standard card flow


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.