Skip to content

Commit d24128e

Browse files
Accelerated Checkouts: Add ShopifyAcceleratedCheckouts sample app (#328)
* feat: add sample app * fix: package reference moves to CSK * fix: shopDomain -> storefrontDomain * refactor: reuse createApplePayConfiguration func * feat: remove graphqls files from git tracking * fix: remove graphqls from xcode project reference * refactor: rename xcconfig Storefront to match MobileBuyIntegration * fix: lint * fix: ensure licenses * refactor: reduce duplication for updating applepayconfig * dev fix * refactor: remove apollo ios cli from repo * fix: remove redundant gitignore line * refactor: remove unused test files from sample app * refactor: move construction out of init * fix: remove 0 spacing * fix: rename include to require in settings too * refactor: use app storage enum for keys * fix: remove unnecessary binding * fix: remove unnecessary refreshID * fix: remove unused id's * refactor: use bindings for cart - pass appropriate * refactor: use env vars for previews * refactor: remove scopes gitignore * chore: update readme to include new sample * dev fix
1 parent f26195e commit d24128e

File tree

138 files changed

+8536
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+8536
-2
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ xcuserdata
88
.claude/
99
CLAUDE.md
1010

11+
# ShopifyAcceleratedCheckoutsApp
12+
*.graphqls
13+
apollo-ios-cli
14+

Samples/MobileBuyIntegration/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

Samples/README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,18 @@ To get started you will first need to generate an `entitlements` file for the ap
1414

1515
```sh
1616
./Scripts/setup_entitlements
17-
```
17+
```
18+
19+
---
20+
21+
## ShopifyAcceleratedCheckoutsApp
22+
23+
This project demonstrates integrating Shopify's Accelerated Checkouts, an all in one solution to accelerated checkouts via Apple Pay and Shop Pay.
24+
25+
To get started:
26+
27+
1. Copy the settings file:
28+
```sh
29+
cp Samples/ShopifyAcceleratedCheckouts/Storefront.xcconfig.example Samples/ShopifyAcceleratedCheckouts/Storefront.xcconfig
30+
```
31+
2. Modify each of the keys in `Storefront.xcconfig` to match the value in your store settings.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!Storefront.xcconfig.example
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// --- Storefront
2+
// --- Find your Storefront API access token under:
3+
// ----- https://admin.shopify.com/store/{STOREFRONT}/settings/apps/development/{APP_ID}/api_credentials
4+
5+
// Configuration settings file format documentation can be found at:
6+
// https://help.apple.com/xcode/#/dev745c5c974
7+
8+
STOREFRONT_DOMAIN = shopify.my-shopify.com
9+
STOREFRONT_ACCESS_TOKEN = 123456
10+
API_VERSION = 2025-07

0 commit comments

Comments
 (0)