Sample Android app that fetches products from Shopify using the Storefront API, creates a cart, and presents checkout with Checkout Kit for Android.
This code accompanies the following tutorials on shopify.dev:
| File | Description |
|---|---|
StorefrontClient.kt |
Storefront API client — product queries and cart creation |
Models.kt |
Serializable data classes for GraphQL responses |
ProductListScreen.kt |
Jetpack Compose product list with Add to Cart |
CartActivity.kt |
Checkout Kit integration with event handling |
- Clone this repo.
- Open the project in Android Studio.
- In
StorefrontClient.kt, replace{shop}.myshopify.comwith your store domain and add your Storefront API access token. - Build and run on an emulator or device (SDK 23+).
- Android Studio Arctic Fox+
- Android SDK 23+ (Android 6.0)
- JDK 17+
- A Shopify development store with at least one product
- A Storefront API access token with
unauthenticated_read_product_listingsandunauthenticated_write_checkoutsscopes
This repository doesn't accept issues or external contributions. It exists as a companion to the tutorials linked above. If you find an issue with the tutorial content, use the feedback form on the tutorial page.
This project is licensed under the MIT License.