# Accept a payment with the Express Checkout Element

Use a single integration to accept payments through express payment buttons.

The [Express Checkout Element](https://docs.stripe.com/payments/mobile/checkout-sessions/express-checkout-element.md) accepts payments through express payment buttons for supported wallets, including Apple Pay, Google Pay, and Link.

Customers see different payment buttons depending on their device, wallet setup, your payment method settings, and Element configuration. When a customer completes the wallet flow, the Express Checkout Element confirms the Checkout Session. You don’t need a separate Pay button for express payments.

The Express Checkout Element reads the Checkout Session to determine which payment methods are available and displays line items and total amount in Apple Pay and Google Pay.

To add express payments to an existing Payment Element integration or combine multiple Elements, follow [Build a checkout page with multiple Elements](https://docs.stripe.com/payments/mobile/checkout-sessions/build-a-checkout-page.md#express-checkout).

This guide uses Checkout Sessions. If your checkout uses Payment Intents, [migrate to Checkout Sessions](https://docs.stripe.com/payments/mobile/checkout-sessions/migrate-from-payment-intents.md) first.

### 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/express-checkout-element/accept-a-payment" \
  -d '{"email": "EMAIL", "preview": "elements_beta_preview"}'
```

# React Native


## Set up Stripe [Server-side] [Client-side]

First, you need a Stripe account. [Register now](https://dashboard.stripe.com/register).

### Server-side 

This integration requires endpoints on your server that talk to the Stripe API. Use the official libraries for access to the Stripe API from your server:

#### Ruby

```bash
# Available as a gem
sudo gem install stripe
```

```ruby
# If you use bundler, you can add this line to your Gemfile
gem 'stripe'
```

### Client-side 

The [React Native SDK](https://github.com/stripe/stripe-react-native) is open source and fully documented. Internally, it uses the [native iOS](https://github.com/stripe/stripe-ios) and [Android](https://github.com/stripe/stripe-android) SDKs. To install Stripe’s React Native SDK, run one of the following commands in your project’s directory (depending on which package manager you use):

#### yarn

```bash
yarn add @stripe/stripe-react-native
```

#### npm

```bash
npm install @stripe/stripe-react-native
```

Next, install some other necessary dependencies:

- For iOS, go to the **ios** directory and run `pod install` to make sure that you also install the required native dependencies.
- For Android, there are no more dependencies to install.

> We recommend following the [official TypeScript guide](https://reactnative.dev/docs/typescript#adding-typescript-to-an-existing-project) to add TypeScript support.

### Stripe initialization

To initialize Stripe in your React Native app, either wrap your payment screen with the `StripeProvider` component, or use the `initStripe` initialization method. Only the API [publishable key](https://docs.stripe.com/keys.md#obtain-api-keys) in `publishableKey` is required. The following example shows how to initialize Stripe using the `StripeProvider` component.

```jsx
import { useState, useEffect } from 'react';
import { StripeProvider } from '@stripe/stripe-react-native';

function App() {
  const [publishableKey, setPublishableKey] = useState('');

  const fetchPublishableKey = async () => {
    const key = await fetchKey(); // fetch key from your server here
    setPublishableKey(key);
  };

  useEffect(() => {
    fetchPublishableKey();
  }, []);

  return (
    <StripeProvider
      publishableKey={publishableKey}
      merchantIdentifier="merchant.identifier" // required for Apple Pay
      urlScheme="your-app" // required for 3D Secure and bank redirects
    >
      {/* Your app code here */}
    </StripeProvider>
  );
}
```

> Use your API [test keys](https://docs.stripe.com/keys.md#obtain-api-keys) while you test and develop, and your [live mode](https://docs.stripe.com/keys.md#test-live-modes) keys when you publish your app.

Import the Mobile Checkout Elements private-preview APIs from their internal SDK paths:

```tsx
import { useCheckoutElements } from '@stripe/stripe-react-native/src/hooks/useCheckoutElements';
import { ExpressCheckoutElementView } from '@stripe/stripe-react-native/src/components/ExpressCheckoutElementView';
```

Private-preview API names and behavior can change before public preview.

## Enable payment methods

The Element displays eligible payment methods based on your [payment method settings](https://dashboard.stripe.com/settings/payment_methods), Element configuration, and the customer’s device and wallet setup. Stripe determines button order from the Session, filtered for eligibility and layout capacity. 

### Payment method availability 

Each payment method has its own setup requirements and display controls. To hide a button, see [Hide a payment method](https://docs.stripe.com/payments/mobile/checkout-sessions/express-checkout-element/accept-a-payment.md#hide-payment-method).

#### Apple Pay

To enable Apple Pay across Checkout Elements on iOS, [configure Apple Pay](https://docs.stripe.com/payments/mobile/checkout-sessions/express-checkout-element/accept-a-payment.md#configure-apple-pay).

The Express Checkout Element displays Apple Pay when the customer’s device and wallet are eligible.

#### Google Pay

Google Pay displays by default on Android when the customer’s device and wallet are eligible.

#### Link

Link displays by default when eligible.

Link isn’t available in the Express Checkout Element when the Checkout Session requires a shipping address or calculates automatic tax from the billing address. The web-based Link fallback also isn’t available when the Session requires a billing address.

When no payment methods are eligible, the Element renders no content. Keep another payment path available or explain why express payment isn’t available. You can [observe availability](https://docs.stripe.com/payments/mobile/checkout-sessions/express-checkout-element/accept-a-payment.md#observe-availability) to hide surrounding labels or separators.

## Set up a return URL [Client-side]

When a customer exits your app (for example to authenticate in Safari or their banking app), provide a way for them to automatically return to your app. Many payment method types *require* a return URL. If you don’t provide one, we can’t present payment methods that require a return URL to your users, even if you’ve enabled them.

To provide a return URL:

1. [Register](https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app#Register-your-URL-scheme) a custom URL. Universal links aren’t supported.
2. [Configure](https://reactnative.dev/docs/linking) your custom URL.
3. Set up your root component to forward the URL to the Stripe SDK as shown below.

> If you’re using Expo, [set your scheme](https://docs.expo.io/guides/linking/#in-a-standalone-app) in the `app.json` file.

```jsx
import { useEffect, useCallback } from 'react';
import { Linking, View } from 'react-native';
import { useStripe } from '@stripe/stripe-react-native';

export default function MyApp() {
  const { handleURLCallback } = useStripe();

  const handleDeepLink = useCallback(
    async (url: string | null) => {
      if (url) {
        const stripeHandled = await handleURLCallback(url);
        if (stripeHandled) {
          // This was a Stripe URL - you can return or add extra handling here as you see fit
        } else {
          // This was NOT a Stripe URL – handle as you normally would
        }
      }
    },
    [handleURLCallback]
  );

  useEffect(() => {
    const getUrlAsync = async () => {
      const initialUrl = await Linking.getInitialURL();
      handleDeepLink(initialUrl);
    };

    getUrlAsync();

    const deepLinkListener = Linking.addEventListener(
      'url',
      (event: { url: string }) => {
        handleDeepLink(event.url);
      }
    );

    return () => deepLinkListener.remove();
  }, [handleDeepLink]);

  return (
    <View>
      <AwesomeAppComponent />
    </View>
  );
}
```

For more information on native URL schemes, refer to the [Android](https://developer.android.com/training/app-links/deep-linking) and [iOS](https://developer.apple.com/documentation/xcode/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app) docs.

## Create a Checkout Session [Server-side]

You must have access to the Mobile Checkout Elements private preview and use API version `2026-03-25.preview` or a later preview version. Set your server SDK’s API version explicitly, including the `.preview` suffix.

On your server, [create a Checkout Session](https://docs.stripe.com/api/checkout/sessions/create.md) when the customer starts checkout. Set [ui_mode](https://docs.stripe.com/api/checkout/sessions/create.md#create_checkout_session-ui_mode) to `mobile_elements` and provide at least one item in [items](https://docs.stripe.com/api/checkout/sessions/create.md#create_checkout_session-items) with its [type](https://docs.stripe.com/api/checkout/sessions/create.md#create_checkout_session-items-type) set to `one_time_price`.

If you enable [automatic tax](https://docs.stripe.com/payments/mobile/checkout-sessions/collect-taxes.md) with `automatic_tax[enabled]=true`, you must also set [invoice_creation[enabled]](https://docs.stripe.com/api/checkout/sessions/create.md#create_checkout_session-invoice_creation-enabled) to `true`.

The Checkout Session must have a valid customer email before confirmation. This guide provides the email on the server: pass a [Customer](https://docs.stripe.com/api/customers.md) with an email or set [customer_email](https://docs.stripe.com/api/checkout/sessions/create.md#create_checkout_session-customer_email), as shown in the example.

```javascript
// Don't put any keys in code. See /keys-best-practices.
const stripe = require('stripe')('<<YOUR_SECRET_KEY>>', {
  apiVersion: '2026-11-18.preview',
});

const session = await stripe.checkout.sessions.create({
  ui_mode: 'mobile_elements',
  customer_email: 'jenny.rosen@example.com',
  items: [
    {
      type: 'one_time_price',
      one_time_price: {
        items: [
          {
            price_data: {
              currency: 'usd',
              unit_amount: 5000,
              product_data: {
                name: 'Painting class fee',
                description: '1-hour painting class',
              },
            },
            quantity: 1,
          },
        ],
      },
    },
  ],
});

res.json({clientSecret: session.client_secret});
```

The private preview supports the `one_time_price` type only.

## Configure the Express Checkout Element [Client-side]

To enable the Element, return `expressCheckoutElement` from the `getConfiguration` function you pass to `useCheckoutElements`. The Element isn’t available without this configuration. Set `onResult` to the callback in [Handle payment results](https://docs.stripe.com/payments/mobile/checkout-sessions/express-checkout-element/accept-a-payment.md#handle-payment-results).

To display Apple Pay on iOS, [configure Apple Pay](https://docs.stripe.com/payments/mobile/checkout-sessions/express-checkout-element/accept-a-payment.md#configure-apple-pay). Google Pay on Android and Link display by default when available, subject to [Checkout Session feature compatibility](https://docs.stripe.com/payments/mobile/checkout-sessions/express-checkout-element/accept-a-payment.md#enable-payment-methods). You can also [customize the buttons](https://docs.stripe.com/payments/mobile/checkout-sessions/express-checkout-element/accept-a-payment.md#customize-buttons) or [hide a payment method](https://docs.stripe.com/payments/mobile/checkout-sessions/express-checkout-element/accept-a-payment.md#hide-payment-method) in this configuration.

Call the server endpoint from [Create a Checkout Session](https://docs.stripe.com/payments/mobile/checkout-sessions/express-checkout-element/accept-a-payment.md#create-checkout-session) to fetch the client secret. Replace `https://example.com/checkout-session` with your endpoint:

```tsx
import { useCallback } from 'react';
import { ActivityIndicator, Button, Text, View } from 'react-native';
import { useCheckoutElements } from '@stripe/stripe-react-native/src/hooks/useCheckoutElements';
import type { CheckoutElements } from '@stripe/stripe-react-native/src/types/CheckoutElements';
import { CheckoutContent } from './CheckoutContent';

function handleExpressCheckoutResult(result: CheckoutElements.Result) {
  // TODO: Handle the result as shown in Handle payment results.
}

export default function CheckoutScreen() {
  const getConfiguration = useCallback(
    async (): Promise<CheckoutElements.CreateOptions> => {
      const response = await fetch('https://example.com/checkout-session', {
        method: 'POST',
      });
      if (!response.ok) {
        throw new Error('Unable to load checkout. Try again later.');
      }
      const { clientSecret } = await response.json();

      return {
        clientSecret,
        returnURL: 'your-app://stripe-redirect',
        expressCheckoutElement: {
          onResult: handleExpressCheckoutResult,
        },
      };
    },
    []
  );

  const checkout = useCheckoutElements({ getConfiguration });

  if (checkout.status === 'error') {
    return (
      <View>
        <Text>
          {checkout.error?.localizedMessage || 'Unable to load checkout. Try again later.'}
        </Text>
        <Button
          title="Try again"
          // The hook exposes reload failures through checkout.error.
          onPress={() => checkout.reload().catch(() => {})}
        />
      </View>
    );
  }

  if (!checkout.session) {
    return <ActivityIndicator />;
  }

  return <CheckoutContent checkout={checkout} />;
}
```

The hook reports loading and configuration failures through `checkout.error`. Display its `localizedMessage` with a generic fallback before showing the checkout. For payment errors, use the `onResult` callback. The error’s `message` is diagnostic and isn’t intended for customers.

## Optional: Configure Apple Pay [Client-side]

To display Apple Pay on iOS, [configure your app for Apple Pay](https://docs.stripe.com/apple-pay.md?platform=react-native#merchantid) and set `merchantIdentifier` on the `StripeProvider` that wraps your checkout. Replace `merchant.com.example` with your Apple merchant identifier. This enables Apple Pay for both the Express Checkout Element and Payment Element:

```tsx
import { StripeProvider } from '@stripe/stripe-react-native';
import CheckoutScreen from './CheckoutScreen';

export default function App() {
  return (
    <StripeProvider
      publishableKey="<<YOUR_PUBLISHABLE_KEY>>"
      merchantIdentifier="merchant.com.example"
      urlScheme="your-app"
    >
      <CheckoutScreen />
    </StripeProvider>
  );
}
```

Set `urlScheme` to the custom URL scheme you registered in [Set up a return URL](https://docs.stripe.com/payments/mobile/checkout-sessions/express-checkout-element/accept-a-payment.md#set-up-return-url). Add these settings to your existing provider instead of creating a second provider.

## Display the Express Checkout Element [Client-side]

Render `ExpressCheckoutElementView` with the Element from the hook. `checkout.expressCheckoutElement` is `null` before loading completes, when the Element isn’t configured, or when no express payment methods are eligible. Provide another payment path or explain why express payment isn’t available:

```tsx
import { ScrollView, Text } from 'react-native';
import { ExpressCheckoutElementView } from '@stripe/stripe-react-native/src/components/ExpressCheckoutElementView';
import type { CheckoutElements } from '@stripe/stripe-react-native/src/types/CheckoutElements';

export function CheckoutContent({
  checkout,
}: {
  checkout: CheckoutElements.UseResult;
}) {
  if (!checkout.session) return null;

  return (
    <ScrollView>
      <Text>Total {checkout.session.totals.total.amount}</Text>
      {checkout.expressCheckoutElement ? (
        <ExpressCheckoutElementView element={checkout.expressCheckoutElement} />
      ) : (
        <Text>No express payment methods are available.</Text>
      )}
    </ScrollView>
  );
}
```

The view resizes to fit its content. To show custom labels or separators only when a method is eligible, [observe available payment methods](https://docs.stripe.com/payments/mobile/checkout-sessions/express-checkout-element/accept-a-payment.md#observe-availability).

## Handle payment results [Client-side]

Define `handleExpressCheckoutResult` in `CheckoutScreen.tsx` and pass it as `expressCheckoutElement.onResult`. The Element confirms the Session when the customer completes a wallet payment. Don’t call `checkout.confirm()` for express payments.

```tsx
import { Alert } from 'react-native';

function handleExpressCheckoutResult(result: CheckoutElements.Result) {
  switch (result.status) {
    case 'completed':
      // Fulfill the order from a webhook on your server.
      Alert.alert('Checkout complete', `Payment status: ${result.paymentStatus}`);
      break;
    case 'canceled':
      // Keep checkout available so the customer can try again.
      break;
    case 'failed':
      Alert.alert(
        'Payment failed',
        result.error.localizedMessage || 'Unable to complete payment. Try again.'
      );
      break;
  }
}
```

Use [Checkout Session webhooks](https://docs.stripe.com/payments/mobile/checkout-sessions/build-a-checkout-page.md?platform=react-native#fulfill-order) on your server to fulfill orders, rather than relying only on the client-side result callback. [Verify webhook signatures](https://docs.stripe.com/webhooks.md#verify-events) before processing events to confirm they came from Stripe. If your server uses network allowlisting, allow requests from [Stripe’s public IP addresses](https://docs.stripe.com/ips.md#webhook-notifications).

If you also display the Payment Element, keep its Pay button and handle the result returned by `checkout.confirm()` separately. See [Build a checkout page with multiple Elements](https://docs.stripe.com/payments/mobile/checkout-sessions/build-a-checkout-page.md?platform=react-native#express-checkout).

If your app supports customer accounts, [clear the locally stored Link authentication state when the customer logs out](https://docs.stripe.com/payments/mobile/checkout-sessions/build-a-checkout-page.md?platform=react-native#handle-user-logout).

## Test the integration

Before you go live, use your Stripe test API keys to test each enabled method on supported iOS and Android devices.

### Apple Pay

Use a real card in Apple Wallet with your test API keys. You can’t add Stripe test cards to Apple Wallet. We recognize test API keys and return a test card token without charging the card. See [test Apple Pay](https://docs.stripe.com/apple-pay.md?platform=react-native#test-apple-pay).

### Google Pay

Add a real card to Google Wallet so that Google Pay is available on your test device. Use Google’s [Android test card suite](https://developers.google.com/pay/api/android/guides/resources/test-card-suite) to test payment scenarios with Stripe test cards. See [test Google Pay](https://docs.stripe.com/google-pay.md?platform=react-native#test-google-pay).

### Test Link

> Don’t store real user data in *sandbox* (A sandbox is an isolated test environment that allows you to test Stripe functionality in your account without affecting your live integration. Use sandboxes to safely experiment with new features and changes) Link accounts. Treat them as if they’re publicly available, because these test accounts are associated with your publishable key.

Link supports credit cards, debit cards, and qualified US bank account purchases.

You can create sandbox accounts for Link using any valid email address. The following table shows the fixed one-time passcode values that Stripe accepts for authenticating sandbox accounts:

| Value                               | Outcome                      |
| ----------------------------------- | ---------------------------- |
| Any other 6 digits not listed below | Success                      |
| 000001                              | Error, code invalid          |
| 000002                              | Error, code expired          |
| 000003                              | Error, max attempts exceeded |

### Check checkout behavior

Test successful payments, cancellation, and error handling. Confirm that your server receives the [checkout.session.completed](https://docs.stripe.com/api/events/types.md#event_types-checkout.session.completed) event and fulfills the order only after payment succeeds. Also test a device with no eligible wallet and verify that your UI provides another way to pay or explains why express payment isn’t available.

If your checkout displays other payment options, test those paths too. Test Sessions that require shipping or billing addresses and Sessions with automatic tax enabled. Check that the eligible buttons match the [payment method compatibility rules](https://docs.stripe.com/payments/mobile/checkout-sessions/express-checkout-element/accept-a-payment.md#enable-payment-methods) and that Apple Pay collects the required details. Rotate the Android device during checkout and verify that state and result handling remain correct.

## Optional: Hide a payment method [Client-side]

To hide Link:

```tsx
expressCheckoutElement: {
  onResult: handleExpressCheckoutResult,
  link: { display: 'never' },
},
```

To hide Google Pay on Android, set `googlePay: { display: 'never' }` instead. To disable Apple Pay across Checkout Elements on iOS, omit `merchantIdentifier` from `StripeProvider`. You can’t hide Apple Pay only in Express Checkout while keeping it in the Payment Element.

These options can’t make an ineligible method available. See [payment method availability](https://docs.stripe.com/payments/mobile/checkout-sessions/express-checkout-element/accept-a-payment.md#check-available-payment-methods).

## Optional: Observe available payment methods [Client-side]

Read `checkout.session.availableExpressCheckoutPaymentMethods`, an object with `applePay`, `googlePay`, and `link` properties. Each property has a `type` string and an `available` Boolean. When all `available` flags are `false`, no buttons display. Buttons aren’t available until the initial Session load completes. The object doesn’t expose [the Stripe-controlled display order](https://docs.stripe.com/payments/mobile/checkout-sessions/express-checkout-element/accept-a-payment.md#enable-payment-methods).

Use this state to hide surrounding labels or separators, animate the Element, or record which payment methods are available. For example, show a separator only when at least one method is available. In `CheckoutContent` from [Display the Express Checkout Element](https://docs.stripe.com/payments/mobile/checkout-sessions/express-checkout-element/accept-a-payment.md#present-express-checkout), compute availability before the `return`, then render the separator inside the `ScrollView`:

```tsx
const { applePay, googlePay, link } =
  checkout.session.availableExpressCheckoutPaymentMethods;
const hasExpressPayment =
  applePay.available || googlePay.available || link.available;
```

```tsx
{hasExpressPayment && <Text>Or pay another way</Text>}
```


## Optional: Customize the buttons [Client-side]

Customize the button layout, type, theme, and corner radius to fit your checkout. Wallet providers control their logos and brand colors. 

Apply these options when [configuring the Element](https://docs.stripe.com/payments/mobile/checkout-sessions/express-checkout-element/accept-a-payment.md#configure-express-checkout). Combine the options you need in the same configuration:

- On iOS, update `expressCheckout` before assigning it to `configuration.expressCheckoutElement`.
- On Android, add the builder calls to your `ExpressCheckoutElement.Configuration()` before passing it to `configuration.expressCheckoutElement(...)`.
- In React Native, add the fields to the `expressCheckoutElement` configuration returned by `getConfiguration`. Keep the existing `onResult` callback.

### Button layout 

By default, the Express Checkout Element arranges the available buttons in a single column within your app’s layout.

You can specify a grid layout with the `buttonLayout` options. `maxColumns` and `maxRows` each accept values from 1 through 10, or you can leave them unset for no limit. Choose a layout with enough space for all eligible buttons.

For example, allow up to two columns and one row:

#### iOS

```swift
expressCheckout.appearance.buttonLayout.maxColumns = 2
expressCheckout.appearance.buttonLayout.maxRows = 1
```

#### Android

```kotlin
val expressCheckout = ExpressCheckoutElement.Configuration()
    .appearance(
        ExpressCheckoutElement.Configuration.Appearance()
            .buttonLayout(
                ExpressCheckoutElement.Configuration.Appearance.ButtonLayout()
                    .maxColumns(2)
                    .maxRows(1)
            )
    )
```

#### React Native

```tsx
appearance: {
  buttonLayout: { maxColumns: 2, maxRows: 1 },
},
```

### Button type 

Choose a button type to set a supported call to action. Each wallet offers its own types.

#### Apple Pay

The default button type is `plain`. Apple Pay localizes the button text for the customer’s device.

For example, use the `buy` button type:

#### iOS

Set `applePayConfiguration.buttonType` to a `PKPaymentButtonType`:

```swift
expressCheckout.applePayConfiguration.buttonType = .buy
```

#### React Native

Set `applePay.buttonType` to a string:

```tsx
applePay: { buttonType: 'buy' },
```

| iOS value | React Native value | Call to action | Minimum iOS version |
| --- | --- | --- | --- |
| `.plain` | `plain` | None (Apple Pay logo only) | 8.3 |
| `.buy` | `buy` | “Buy with” | 8.3 |
| `.setUp` | `setUp` | “Set up” | 9.0 |
| `.inStore` | `inStore` | “Pay with” | 10.0 |
| `.donate` | `donate` | “Donate with” | 10.2 |
| `.checkout` | `checkout` | “Check Out with” | 12.0 |
| `.book` | `book` | “Book with” | 12.0 |
| `.subscribe` | `subscribe` | “Subscribe with” | 12.0 |
| `.reload` | `reload` | “Reload with” | 14.0 |
| `.addMoney` | `addMoney` | “Add Money with” | 14.0 |
| `.topUp` | `topUp` | “Top Up with” | 14.0 |
| `.order` | `order` | “Order with” | 14.0 |
| `.rent` | `rent` | “Rent with” | 14.0 |
| `.support` | `support` | “Support with” | 14.0 |
| `.contribute` | `contribute` | “Contribute with” | 14.0 |
| `.tip` | `tip` | “Tip with” | 14.0 |
| `.continue` | `continue` | “Continue with” | 15.0 |

Choose a type that matches the payment action. For example, `.setUp` is intended for adding a card to Apple Pay, while the Express Checkout Element starts a payment when tapped. See the [Apple Pay button guidelines](https://developer.apple.com/design/human-interface-guidelines/apple-pay#Using-Apple-Pay-buttons) for usage requirements.

#### Google Pay

The default button type is `pay`. Google Pay localizes the button text for the customer’s device.

For example, use the `buy` button type:

#### Android

Set `GooglePayConfiguration.buttonType` to a `ButtonType`:

```kotlin
val expressCheckout = ExpressCheckoutElement.Configuration()
    .googlePayConfiguration(
        ExpressCheckoutElement.Configuration.GooglePayConfiguration()
            .buttonType(
                ExpressCheckoutElement.Configuration.GooglePayConfiguration.ButtonType.Buy
            )
    )
```

#### React Native

Set `googlePay.buttonType` to a string:

```tsx
googlePay: { buttonType: 'buy' },
```

| Android value | React Native value | Call to action |
| --- | --- | --- |
| `Plain` | `plain` | None (Google Pay logo only) |
| `Book` | `book` | “Book with” |
| `Buy` | `buy` | “Buy with” |
| `Checkout` | `checkout` | “Checkout with” |
| `Donate` | `donate` | “Donate with” |
| `Order` | `order` | “Order with” |
| `Pay` | `pay` | “Pay with” |
| `Subscribe` | `subscribe` | “Subscribe with” |

See the [Google Pay Android button options](https://developers.google.com/pay/api/android/reference/request-objects#ButtonOptions) for usage requirements.

#### Link

Link controls its button content, which can vary with the available space and the customer’s account. You can’t configure its button type.

### Button theme 

Set `appearance.buttonTheme` to a value that contrasts with your checkout background. The theme doesn’t affect Link buttons, which retain their required brand styling. The default is `automatic`.

For example, use the dark theme on a light background:

#### iOS

```swift
expressCheckout.appearance.buttonTheme = .dark
```

#### Android

```kotlin
val expressCheckout = ExpressCheckoutElement.Configuration()
    .appearance(
        ExpressCheckoutElement.Configuration.Appearance()
            .buttonTheme(
                ExpressCheckoutElement.Configuration.Appearance.ButtonTheme.Dark
            )
    )
```

#### React Native

```tsx
appearance: {
  buttonTheme: 'dark',
},
```

| iOS value | Android value | React Native value | Button appearance |
| --- | --- | --- | --- |
| `.light` | `Light` | `light` | Light button for a dark background. |
| `.dark` | `Dark` | `dark` | Dark button for a light background. |
| `.automatic` | `Automatic` | `automatic` | Adapts to the system appearance on iOS and React Native. Contrasts with the current system theme on Android. |

### Corner radius 

Set the corner radius to control button rounding. The value is in points on iOS and density-independent pixels on Android.

#### iOS

```swift
expressCheckout.appearance.cornerRadius = 12
```

#### Android

```kotlin
val expressCheckout = ExpressCheckoutElement.Configuration()
    .appearance(
        ExpressCheckoutElement.Configuration.Appearance()
            .cornerRadiusDp(12f)
    )
```

#### React Native

```tsx
appearance: {
  borderRadius: 12,
},
```
