You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Accelerated checkout buttons surface Apple Pay and Shop Pay options earlier in the buyer journey so more orders complete without leaving your app.
847
+
848
+
### Prerequisites
849
+
850
+
- iOS 16 or later
851
+
- The `write_cart_wallet_payments` access scope ([request access](https://www.appsheet.com/start/1ff317b6-2da1-4f39-b041-c01cfada6098))
852
+
- Apple Pay payment processing certificates ([setup guide](https://shopify.dev/docs/storefronts/mobile/create-apple-payment-processing-certificates))
853
+
- A device configured for Apple Pay ([Apple setup instructions](https://developer.apple.com/documentation/passkit/setting-up-apple-pay))
854
+
855
+
### Configure the integration
856
+
857
+
Pass an `acceleratedCheckouts` configuration when setting up the provider or `ShopifyCheckoutSheet` instance. This connects the accelerated checkout buttons to your storefront.
858
+
859
+
```tsx
860
+
import {ShopifyCheckoutSheetProvider} from '@shopify/checkout-sheet-kit';
> Do not provide both `accessToken` and `email`/`phoneNumber` together. For authenticated customers, email and phone are fetched automatically from the Shopify account.
895
+
896
+
### Render accelerated checkout buttons
897
+
898
+
Use `AcceleratedCheckoutButtons` to attach accelerated checkout calls-to-action to product or cart surfaces once you have a valid cart ID or product variant ID from the Storefront API.
Use `applePayLabel` to map to the native `PayWithApplePayButtonLabel` values. The default is `plain`.
947
+
948
+
```tsx
949
+
import {ApplePayLabel} from '@shopify/checkout-sheet-kit';
950
+
951
+
<AcceleratedCheckoutButtons
952
+
cartId={cartId}
953
+
applePayLabel={ApplePayLabel.buy}
954
+
/>
955
+
```
956
+
957
+
#### Customize the Apple Pay button style
958
+
959
+
Use `applePayStyle` to set the color style of the Apple Pay button. The default is `automatic`, which adapts to the current appearance (light/dark mode).
960
+
961
+
```tsx
962
+
import {ApplePayStyle} from '@shopify/checkout-sheet-kit';
963
+
964
+
<AcceleratedCheckoutButtons
965
+
cartId={cartId}
966
+
applePayStyle={ApplePayStyle.whiteOutline}
967
+
/>
968
+
```
969
+
970
+
Available styles: `automatic`, `black`, `white`, `whiteOutline`.
971
+
972
+
#### Customize button corners
973
+
974
+
The `cornerRadius` prop lets you match the buttons to other calls-to-action in your app. Buttons default to an 8pt radius.
0 commit comments