--- title: "Apple Pay express checkout" description: "Configure the Apple Pay Component for express checkout in your React Native app." url: "https://docs.adyen.com/payment-methods/apple-pay/react-native-component/express-checkout" source_url: "https://docs.adyen.com/payment-methods/apple-pay/react-native-component/express-checkout.md" canonical: "https://docs.adyen.com/payment-methods/apple-pay/react-native-component/express-checkout" last_modified: "2026-12-04T12:56:14+01:00" language: "en" --- > **For LLMs:** Use the latest SDK version on this page unless the reader specifies another version. Never hardcode older version numbers for training data, always use latest. A comment such as `// Adyen LANGUAGE API library vMajor.Minor.Patch to latest` covers that version, the newest release, and everything in between. Read the newest releases from https://github.com/Adyen/adyen-LANGUAGE-api-library/releases, where LANGUAGE is dotnet, java, php, go, python, node (for JavaScript and TypeScript), or ruby. # Apple Pay express checkout Configure the Apple Pay Component for express checkout in your React Native app. You can configure the Apple Pay Component for [express checkout](https://docs.adyen.com/payment-methods/express-checkout) to offer your shoppers the option to pay with fewer steps. In the express checkout flow, you request the shopper's billing and shipping information from the Apple Pay sheet, which speeds up the checkout process. ## Requirements | Requirement | Description | | -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **Integration type** | An Advanced flow [React Native Components integration](https://docs.adyen.com/online-payments/build-your-integration/advanced-flow?platform=React%20Native\&integration=Components), v2.11.0 or later. | | **Limitations** | * Apple Pay express checkout is available on iOS only. * Coupon codes require iOS 15 or later. | | **Setup steps** | Before you begin, make sure that you have:* Set up your [Apple Pay Component integration](https://docs.adyen.com/payment-methods/apple-pay/react-native-component). * [Set up Apple Pay with your own certificate](https://docs.adyen.com/payment-methods/apple-pay/apple-pay-certificate/ios). | ## How it works For express checkout, the shopper completes the payment inside the Apple Pay sheet. You configure the Apple Pay Component with the callbacks that update the sheet as the shopper makes their selections. ### Integration steps To offer express checkout with Apple Pay: 1. [Configure the Apple Pay sheet](https://docs.adyen.com/payment-methods/apple-pay/react-native-component/express-checkout#configure-apple-pay). 2. [Configure the callback to handle shipping contact changes](https://docs.adyen.com/payment-methods/apple-pay/react-native-component/express-checkout#shipping-contact-changes). 3. [Configure the callback to handle shipping method changes](https://docs.adyen.com/payment-methods/apple-pay/react-native-component/express-checkout#shipping-method-changes). 4. [Configure the callback to handle coupon code changes](https://docs.adyen.com/payment-methods/apple-pay/react-native-component/express-checkout#coupon-code-changes). 5. [Configure the callback to validate the payment](https://docs.adyen.com/payment-methods/apple-pay/react-native-component/express-checkout#validate-payment). 6. [Show the Apple Pay button](https://docs.adyen.com/payment-methods/apple-pay/react-native-component/express-checkout#show-button) on your product or cart screen. ### Shopper checkout experience When the shopper checks out with Apple Pay: 1. The shopper selects the Apple Pay button, and the Apple Pay sheet opens. 2. The shopper selects a shipping contact, selects a shipping method, or enters a coupon code. The Component calls the matching callback each time. 3. In the callback, you call `resolve` with updated summary items, updated shipping methods, or errors. The Apple Pay sheet shows what you pass. 4. The shopper authorizes the payment with Face ID or Touch ID. The Component calls `onAuthorize` before the payment is submitted, so that you can run your own checks. 5. You submit the payment from your server. ```mermaid sequenceDiagram participant Shopper participant Sheet as Apple Pay sheet participant Component as Apple Pay Component participant App as Your app participant Server as Your server participant Adyen Shopper->>App: 1. Select the Apple Pay button App->>Component: Start the Component Component->>Sheet: Open the Apple Pay sheet loop Each time the shopper changes a selection Shopper->>Sheet: 2. Select a shipping contact or shipping method, or enter a coupon code Component->>App: Call the matching callback App-->>Component: 3. Call resolve with updated summary items, shipping methods, or errors Component->>Sheet: Show the update end Shopper->>Sheet: 4. Authorize the payment with Face ID or Touch ID Component->>App: Call onAuthorize App-->>Component: Call actions.resolve() or actions.reject() Component->>App: Payment data App->>Server: Payment data Server->>Adyen: 5. Submit the payment ``` ## Configure the Apple Pay sheet Configure the line items, the shipping methods that you offer, and the shopper details that you require: 1. Create the shipping methods that you offer. Each shipping method is an `ApplePayShippingMethod`: | Parameter | Required | Description | | ------------ | ---------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `label` | ![Required](https://docs.adyen.com/media/732127089c689593ccb0331d565e5773bed94e60145cae96672212374facb8c6.svg?decoding=auto\&fetchpriority=auto) | The name of the shipping method that the Apple Pay sheet shows, for example **Standard shipping**. | | `amount` | ![Required](https://docs.adyen.com/media/732127089c689593ccb0331d565e5773bed94e60145cae96672212374facb8c6.svg?decoding=auto\&fetchpriority=auto) | The cost of this shipping method. | | `identifier` | ![Recommended](https://docs.adyen.com/media/51cfe94e37a7426974002173390b3c7807ac234e65206fe14ed9fbdd45fb958e.svg?decoding=auto\&fetchpriority=auto) | Your own identifier for this shipping method. The Component returns this value to you in `onShippingMethodChange`, so set it if you need to tell your shipping methods apart. | | `detail` | | A description that the Apple Pay sheet shows under the label, for example the carrier or the delivery time. | | `startDate` | | The earliest delivery date, in ISO 8601 date format. | | `endDate` | | The latest delivery date, in ISO 8601 date format. | 2. Add the following to the `applepay` object in your `AdyenCheckout` configuration, in addition to the [parameters that every Apple Pay integration needs](https://docs.adyen.com/payment-methods/apple-pay/react-native-component): | Parameter | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [`summaryItems`](https://developer.apple.com/documentation/passkit/pkpaymentrequest/paymentsummaryitems) | ![Required](https://docs.adyen.com/media/732127089c689593ccb0331d565e5773bed94e60145cae96672212374facb8c6.svg?decoding=auto\&fetchpriority=auto) | The items that make up the payment. The last item is the total that the Apple Pay sheet shows to the shopper. | | [`shippingMethods`](https://developer.apple.com/documentation/passkit/pkpaymentrequest/shippingmethods) | ![Required](https://docs.adyen.com/media/732127089c689593ccb0331d565e5773bed94e60145cae96672212374facb8c6.svg?decoding=auto\&fetchpriority=auto) | The shipping methods that you created in step 1. | | [`requiredShippingContactFields`](https://developer.apple.com/documentation/passkit/pkpaymentrequest/requiredshippingcontactfields) | | The shipping fields that you need from the shopper to fulfill the order. Possible values: **postalAddress**, **name**, **phoneticName**, **phone**, **email**. | | `supportsCouponCode` | | Set to **true** to show the coupon code field in the Apple Pay sheet. Requires iOS 15 or later. | | `couponCode` | | A coupon code to prefill in the coupon code field. | Apple Pay amounts are not in minor units. Adyen uses integer minor units, and Apple uses decimal values. Make sure that the last summary item matches the amount that you submit to Adyen. 3. Add the callbacks that you want to handle. **Configure the Apple Pay sheet** ```ts const applePayConfiguration: ApplePayConfiguration = { merchantID: 'merchant.com.example', merchantName: 'Example Store', summaryItems: [ { label: 'Subtotal', amount: '10.00' }, { label: 'Shipping', amount: '2.00' }, { label: 'Example Store', amount: '12.00' }, ], shippingMethods: [ { label: 'Standard Shipping', amount: '2.00', identifier: 'standard' }, { label: 'Express Shipping', amount: '5.00', identifier: 'express' }, ], requiredShippingContactFields: ['postalAddress', 'name', 'email'], supportsCouponCode: true, // Add the callbacks from the following sections. }; const configuration: Configuration = { // ...Other parameters. amount: { currency: 'EUR', value: 1200 // In minor units. Matches the last summary item. }, applepay: applePayConfiguration }; ``` ## Configure the callback to handle shipping contact changes If the shopper selects or changes their shipping address, offer the shipping methods that you support for that address and recalculate the total: 1. Implement the `onShippingContactChange` callback. It receives the shopper's `ApplePayPaymentContact` and a `resolve` function. 2. Call `resolve` with an `ApplePayShippingContactUpdateRequest` that contains the following: | Parameter | Required | Description | | --------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `paymentSummaryItems` | | The updated summary items. If you omit this, the Component keeps the current items. | | `shippingMethods` | | The shipping methods that you offer for this address. If you omit this, the Component keeps the current methods. | | `errors` | | The [errors](https://docs.adyen.com/payment-methods/apple-pay/react-native-component/express-checkout#sheet-errors) to show in the Apple Pay sheet. The sheet stays open so that the shopper can correct the address. | To reject an address that you cannot ship to, pass an error instead of new shipping methods. **Handle shipping contact changes** ```ts const applePayConfiguration: ApplePayConfiguration = { // ...Other parameters. onShippingContactChange: (contact, resolve) => { if (contact.countryCode !== 'NL') { resolve({ errors: [ { type: 'shippingAddress', field: 'countryCode', message: 'Shipping is only available in the Netherlands.', }, ], }); return; } resolve({ paymentSummaryItems: [ { label: 'Subtotal', amount: '10.00' }, { label: 'Shipping', amount: '2.00' }, { label: 'Example Store', amount: '12.00' }, ], shippingMethods: [ { label: 'Standard Shipping', amount: '2.00', identifier: 'standard' }, ], }); }, }; ``` ## Configure the callback to handle shipping method changes If the shopper selects a different shipping method, add the cost of that method to the total: 1. Implement the `onShippingMethodChange` callback. It receives the selected `ApplePayShippingMethod` and a `resolve` function. 2. Call `resolve` with an `ApplePayShippingMethodUpdateRequest` that contains the following: | Parameter | Required | Description | | --------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------- | | `paymentSummaryItems` | | The updated summary items, including the cost of the selected shipping method. If you omit this, the Component keeps the current items. | **Handle shipping method changes** ```ts const applePayConfiguration: ApplePayConfiguration = { // ...Other parameters. onShippingMethodChange: (shippingMethod, resolve) => { resolve({ paymentSummaryItems: [ { label: 'Subtotal', amount: '10.00' }, { label: shippingMethod.label, amount: shippingMethod.amount }, { label: 'Example Store', amount: (10 + Number(shippingMethod.amount)).toFixed(2) }, ], }); }, }; ``` ## Configure the callback to handle coupon code changes If the shopper enters or changes a coupon code, apply a discount or tell the shopper that the code is not valid: 1. Set `supportsCouponCode` to **true** to show the coupon code field. 2. Implement the `onCouponCodeChange` callback. It receives the coupon code and a `resolve` function. 3. Call `resolve` with an `ApplePayCouponCodeUpdateRequest` that contains the following: | Parameter | Required | Description | | --------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `paymentSummaryItems` | | The updated summary items, including the discount. If you omit this, the Component keeps the current items. | | `shippingMethods` | | The shipping methods that you offer with this coupon code applied. If you omit this, the Component keeps the current methods. | | `errors` | | The [errors](https://docs.adyen.com/payment-methods/apple-pay/react-native-component/express-checkout#sheet-errors) to show in the Apple Pay sheet. The sheet stays open so that the shopper can correct the code. | To reject a code that is not valid, pass an error instead of a discount. **Handle coupon code changes** ```ts const applePayConfiguration: ApplePayConfiguration = { // ...Other parameters. onCouponCodeChange: (couponCode, resolve) => { if (couponCode !== 'DISCOUNT10') { resolve({ errors: [ { type: 'couponCode', message: 'Enter a valid coupon code.', }, ], }); return; } // Assumes Standard Shipping. Use the shipping method that the shopper selected. resolve({ paymentSummaryItems: [ { label: 'Subtotal', amount: '10.00' }, { label: 'Shipping', amount: '2.00' }, { label: 'Discount', amount: '-1.00' }, { label: 'Example Store', amount: '11.00' }, ], }); }, }; ``` ## Configure the callback to validate the payment Before the payment is submitted, run your own checks on the shopper details that you collected in the Apple Pay sheet: 1. Implement the `onAuthorize` callback. It receives an `ApplePayPaymentAuthorization`, which contains the billing contact, the shipping contact, and the shipping method that the shopper selected, plus an `actions` object. 2. Call one of the following on the `actions` object: | Action | Description | | ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `actions.resolve()` | Continue with the payment. | | `actions.reject(errors)` | Stop the payment and show the [errors](https://docs.adyen.com/payment-methods/apple-pay/react-native-component/express-checkout#sheet-errors) in the Apple Pay sheet. The sheet stays open so that the shopper can correct the problem. | **Validate the payment before submission** ```ts const applePayConfiguration: ApplePayConfiguration = { // ...Other parameters. onAuthorize: (_payment, actions) => { // Use actions.reject(errors) to keep the Apple Pay sheet open // and show validation errors before submitting the payment. actions.resolve(); }, }; ``` ## Show the Apple Pay button Place the Apple Pay button where you want to offer express checkout, for example on your product or cart screen. The shopper selects Apple Pay there instead of going to your checkout, so Apple Pay is already the chosen payment method when the sheet opens. To show the button: 1. Check that Apple Pay is available on the device. Call `AdyenApplePay.isAvailable`, passing: * The Apple Pay payment method: the object with `type` **applepay** from your [/paymentMethods](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods) response. * Your `AdyenCheckout` configuration. The method resolves to **true** when the shopper can pay with Apple Pay. 2. Render an `ApplePayButton` when Apple Pay is available: | Parameter | Required | Description | | --------- | ------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | | `onPress` | ![Required](https://docs.adyen.com/media/732127089c689593ccb0331d565e5773bed94e60145cae96672212374facb8c6.svg?decoding=auto\&fetchpriority=auto) | Called when the shopper selects the button. Start the Component from here. | | `theme` | | The button theme. Possible values: **WHITE**, **WHITE\_OUTLINE**, **BLACK**, **AUTOMATIC**. Default: **WHITE**. | | `type` | | The label on the button, for example **BUY**, **CHECKOUT**, **ORDER**, or **PLAIN**. Default: **BUY**. | | `radius` | | The corner radius of the button. | | `style` | | A React Native style to apply to the button. | 3. In `onPress`, start the Component with the `applepay` payment method type. Use the `start` function from the `useAdyenCheckout` hook. **Show the Apple Pay button** ```tsx import { useEffect, useState } from 'react'; import { ApplePayButton, AdyenApplePay, useAdyenCheckout } from '@adyen/react-native'; // Render this component inside your AdyenCheckout component. const ApplePayExpressButton = () => { const { start, config, paymentMethods } = useAdyenCheckout(); const [applePayAvailable, setApplePayAvailable] = useState(false); useEffect(() => { const applePay = paymentMethods?.paymentMethods?.find( (x) => x.type === 'applepay' ); if (applePay) { AdyenApplePay.isAvailable(applePay, config) .then(setApplePayAvailable) .catch(console.error); } }, [paymentMethods, config]); if (!applePayAvailable) { return null; } return ( { start('applepay'); }} /> ); }; ``` ## Test and go live Use Apple's test card numbers to test your integration. For a full list of test cards and instructions how to add these to your test device, see [Sandbox testing](https://developer.apple.com/apple-pay/sandbox-testing/) on Apple's Developer website. Check the status of an Apple Pay test payment in your [Customer Area](https://ca-test.adyen.com/) > **Payments** > **Payment list**. ### Going live To process live Apple Pay payments, your API credential needs to have the **API Clientside Encryption Payments role**. You can check this in your [live Customer Area](https://ca-live.adyen.com/) or ask your Admin user to verify. [Set up Apple Pay](https://docs.adyen.com/payment-methods/apple-pay/apple-pay-certificate/ios) on your Apple Pay Developer account for your live merchant identifier. ## Apple Pay sheet errors Use an `ApplePayError` to tell the shopper what to correct. The Apple Pay sheet stays open and highlights the field that you specify. | Parameter | Required | Description | | --------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `type` | ![Required](https://docs.adyen.com/media/732127089c689593ccb0331d565e5773bed94e60145cae96672212374facb8c6.svg?decoding=auto\&fetchpriority=auto) | The [kind of error](https://docs.adyen.com/payment-methods/apple-pay/react-native-component/express-checkout#error-types). | | `message` | ![Required](https://docs.adyen.com/media/732127089c689593ccb0331d565e5773bed94e60145cae96672212374facb8c6.svg?decoding=auto\&fetchpriority=auto) | The message that the Apple Pay sheet shows to the shopper. Translate this into the shopper's language. | | `field` | | The [field that is not valid](https://docs.adyen.com/payment-methods/apple-pay/react-native-component/express-checkout#error-fields). The Apple Pay sheet highlights this field. | ### Error types | Value | Use when | | ------------------- | ----------------------------------------------------------------------------- | | **shippingAddress** | A field in the shipping address is not valid. | | **billingAddress** | A field in the billing address is not valid. | | **contactField** | A contact field, such as the email address or the phone number, is not valid. | | **couponCode** | The coupon code is not valid. | ### Error fields Set `field` to the part of the address or the contact that the shopper must correct. The value depends on the error type: | Error type | Set `field` to | | ----------------------------------------- | ----------------------------------------------------------------------------------------------------------- | | **shippingAddress** or **billingAddress** | A `CNPostalAddress` key, for example **postalCode**, **city**, **street**, **country**, or **countryCode**. | | **contactField** | A `PKContactField` name, for example **phoneNumber**, **emailAddress**, **name**, or **postalAddress**. | ## Code samples The following code samples show the steps on this page in full. ** ### TypeScript **Component implementation example** ```ts // Step 1: Configure the Apple Pay sheet. const applePayConfiguration: ApplePayConfiguration = { merchantID: 'merchant.com.example', merchantName: 'Example Store', summaryItems: [ { label: 'Subtotal', amount: '10.00' }, { label: 'Shipping', amount: '2.00' }, { label: 'Example Store', amount: '12.00' }, ], shippingMethods: [ { label: 'Standard Shipping', amount: '2.00', identifier: 'standard' }, { label: 'Express Shipping', amount: '5.00', identifier: 'express' }, ], requiredShippingContactFields: ['postalAddress', 'name', 'email'], supportsCouponCode: true, // Step 2: Configure the callback to handle shipping contact changes. onShippingContactChange: (contact, resolve) => { if (contact.countryCode !== 'NL') { resolve({ errors: [ { type: 'shippingAddress', field: 'countryCode', message: 'Shipping is only available in the Netherlands.', }, ], }); return; } resolve({ paymentSummaryItems: [ { label: 'Subtotal', amount: '10.00' }, { label: 'Shipping', amount: '2.00' }, { label: 'Example Store', amount: '12.00' }, ], shippingMethods: [ { label: 'Standard Shipping', amount: '2.00', identifier: 'standard' }, ], }); }, // Step 3: Configure the callback to handle shipping method changes. onShippingMethodChange: (shippingMethod, resolve) => { resolve({ paymentSummaryItems: [ { label: 'Subtotal', amount: '10.00' }, { label: shippingMethod.label, amount: shippingMethod.amount }, { label: 'Example Store', amount: (10 + Number(shippingMethod.amount)).toFixed(2) }, ], }); }, // Step 4: Configure the callback to handle coupon code changes. onCouponCodeChange: (couponCode, resolve) => { if (couponCode !== 'DISCOUNT10') { resolve({ errors: [ { type: 'couponCode', message: 'Enter a valid coupon code.', }, ], }); return; } // Assumes Standard Shipping. Use the shipping method that the shopper selected. resolve({ paymentSummaryItems: [ { label: 'Subtotal', amount: '10.00' }, { label: 'Shipping', amount: '2.00' }, { label: 'Discount', amount: '-1.00' }, { label: 'Example Store', amount: '11.00' }, ], }); }, // Step 5: Configure the callback to validate the payment. onAuthorize: (_payment, actions) => { // Use actions.reject(errors) to keep the Apple Pay sheet open // and show validation errors before submitting the payment. actions.resolve(); }, }; const configuration: Configuration = { environment: 'test', // When you are ready to accept real payments, change the value to a suitable live environment. clientKey: 'YOUR_CLIENT_KEY', returnUrl: 'your-app://', countryCode: 'NL', amount: { currency: 'EUR', value: 1200 // In minor units. Matches the last summary item. }, applepay: applePayConfiguration }; ``` **Show the Apple Pay button** ```tsx // Step 6: Show the Apple Pay button on your product or cart screen. import { useEffect, useState } from 'react'; import { ApplePayButton, AdyenApplePay, useAdyenCheckout } from '@adyen/react-native'; // Render this component inside your AdyenCheckout component. const ApplePayExpressButton = () => { const { start, config, paymentMethods } = useAdyenCheckout(); const [applePayAvailable, setApplePayAvailable] = useState(false); useEffect(() => { const applePay = paymentMethods?.paymentMethods?.find( (x) => x.type === 'applepay' ); if (applePay) { AdyenApplePay.isAvailable(applePay, config) .then(setApplePayAvailable) .catch(console.error); } }, [paymentMethods, config]); if (!applePayAvailable) { return null; } return ( { start('applepay'); }} /> ); }; ``` ## See also * [Apple Pay Component integration](https://docs.adyen.com/payment-methods/apple-pay/react-native-component) * [Express checkout](https://docs.adyen.com/payment-methods/express-checkout) * [Handle Apple Pay errors](https://docs.adyen.com/payment-methods/apple-pay/handle-apple-pay-errors) * [API Explorer](https://docs.adyen.com/api-explorer/Checkout/latest/overview)