# Build an in-app checkout with Checkout Sessions

Use Mobile Checkout Elements to build a native checkout backed by Checkout Sessions.
![Diagram of a checkout screen in your app that uses four Elements. The Express Checkout Element (an Apple Pay button) and the Currency Selector Element appear on the screen. Selecting the Edit button opens the Shipping Address Element in a sheet. Selecting the Add payment method row opens the Payment Element in another sheet.](https://b.stripecdn.com/docs-statics-srv/assets/mobile-checkout-elements-overview.5c114b86ee4645ae3a125f4a50c7eb25.png)

Combine Mobile Checkout Elements to build a native checkout flow in your app.

Use Mobile Checkout Elements to build a native checkout with the [Checkout Sessions API](https://docs.stripe.com/api/checkout/sessions.md). Checkout Sessions manages the order’s line items, tax, shipping, and totals, while you control the layout in your iOS or Android app.

### Want access to Mobile Checkout Elements?

Mobile Checkout Elements is in private preview. Share your email address to request access.

```bash
curl https://docs.stripe.com/preview/register \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Referer: https://docs.stripe.com/payments/mobile/checkout-sessions" \
  -d '{"email": "EMAIL", "preview": "elements_beta_preview"}'
```

## Why use Checkout Sessions

Stripe recommends Checkout Sessions for most new payment integrations. Checkout Sessions covers similar use cases as [Payment Intents](https://docs.stripe.com/api/payment_intents.md) but additionally offers these key features:

- [Automatic tax](https://docs.stripe.com/payments/mobile/checkout-sessions/collect-taxes.md)

- [Adaptive Pricing](https://docs.stripe.com/payments/mobile/checkout-sessions/adaptive-pricing.md) With Mobile Checkout Elements, you can:

- Display and collect payment methods with the [Payment Element](https://docs.stripe.com/payments/mobile/checkout-sessions/build-a-checkout-page.md#payment-element).

- Offer express payments with Apple Pay, Google Pay, and Link using the [Express Checkout Element](https://docs.stripe.com/payments/mobile/checkout-sessions/express-checkout-element.md).

- Collect a shipping address with the [Shipping Address Element](https://docs.stripe.com/payments/mobile/checkout-sessions/build-a-checkout-page.md#shipping-address).

- Calculate tax automatically with [Stripe Tax](https://docs.stripe.com/payments/mobile/checkout-sessions/collect-taxes.md).

- Let eligible customers pay in their local currency with [Adaptive Pricing and the Currency Selector Element](https://docs.stripe.com/payments/mobile/checkout-sessions/adaptive-pricing.md).

- Read line items, tax, shipping, and totals from one shared session.

## How it works

1. Your server [creates a Checkout Session](https://docs.stripe.com/api/checkout/sessions/create.md) and returns its [client secret](https://docs.stripe.com/api/checkout/sessions/object.md#checkout_session_object-client_secret) to your app.
2. Your app initializes the Mobile Checkout Elements SDK with the client secret.
3. Your app reads the Checkout Session to render line items, totals, and other checkout data.
4. Your app obtains Elements from the SDK and places them in the checkout flow.
5. Your customer uses the Payment Element to select a payment method and enter any required details.
6. Your customer uses your UI to confirm the payment.

## Private preview limitations

Mobile Checkout Elements doesn’t support the following features:

- [Promo codes and discounts](https://docs.stripe.com/payments/checkout/discounts.md)
- Subscription or setup-mode Sessions
- Stripe Connect payments that use the [on_behalf_of](https://docs.stripe.com/api/checkout/sessions/create.md#create_checkout_session-payment_intent_data-on_behalf_of) parameter
- Server-side line-item updates, manual approval, and other bring-your-own server-side checkout logic
- Shipping option collection
- [Custom payment methods](https://docs.stripe.com/payments/mobile/custom-payment-methods.md)
- Multiprocessor integrations
- [Tax ID](https://docs.stripe.com/tax/checkout/tax-ids.md) or [phone number collection](https://docs.stripe.com/payments/checkout/phone-numbers.md)
- [Automatic tax](https://docs.stripe.com/payments/mobile/checkout-sessions/collect-taxes.md) without invoice creation. You must set `invoice_creation[enabled]=true` when you enable automatic tax.
- Tap to add a card
- [Card funding filtering](https://docs.stripe.com/payments/mobile/filter-card-funding.md)
- [Individual and business name collection](https://docs.stripe.com/payments/checkout/name-collection.md)
- Checkout without requiring a customer email (`email_collection=if_required`)
- [BLIK](https://docs.stripe.com/payments/blik.md) and [Vipps](https://docs.stripe.com/payments/vipps.md) support

Some Payment Intents and Customer Sessions options also don’t have a Checkout Sessions equivalent in this preview. Review the private-preview requirements with your Stripe contact before migrating an integration that depends on low-level payment controls.

## Compare Checkout Sessions and Payment Intents

| Capability | Mobile Checkout Elements | Payment Intents with the mobile Payment Element |
| --- | --- | --- |
| State model | The full checkout, including the order and payment | A single payment or payment method setup |
| Amounts and line items | Stripe models line items and provides a totals summary | Your integration calculates and stores the amount and order details |
| Automatic tax | Built-in Stripe Tax calculation | Requires a separate Tax API integration and transaction recording |
| Adaptive Pricing | Built in for eligible Sessions | Not supported |
| Shipping | Collects shipping addresses and automatically updates tax | Your integration models shipping and updates the PaymentIntent amount |
| Checkout updates | Elements and your app update one shared session | Your app coordinates state and amount changes with its server |

## Next steps

- [Build a checkout with Mobile Checkout Elements](https://docs.stripe.com/payments/mobile/checkout-sessions/build-a-checkout-page.md).
- [Fulfill orders](https://docs.stripe.com/payments/mobile/checkout-sessions/fulfillment.md).
- [Accept a payment with the Express Checkout Element](https://docs.stripe.com/payments/mobile/checkout-sessions/express-checkout-element/accept-a-payment.md).
- [Customize the look and feel of your Elements](https://docs.stripe.com/payments/mobile/checkout-sessions/customize-appearance.md).
- [Collect taxes](https://docs.stripe.com/payments/mobile/checkout-sessions/collect-taxes.md).
- [Let customers pay in their local currency](https://docs.stripe.com/payments/mobile/checkout-sessions/adaptive-pricing.md).
- [Migrate from Payment Intents to Checkout Sessions](https://docs.stripe.com/payments/mobile/checkout-sessions/migrate-from-payment-intents.md).
