On July 1, 2023 the Unity Buy SDK will be no longer supported and this repository will go into read-only mode. For more information, please see our changelog announcement on Shopify.dev.
The Shopify SDK for Unity allows Unity developers to query and sell products from Shopify directly in Unity.
- Query products
- Query collections
- Multiple Languages
- Build a cart
- Check out via weblink
- Checkouts via Safari Web View
- Checkouts via Apple Pay
- Checkouts via Android Chrome Custom Tab
- Make custom GraphQL queries using the Storefront API
Coming Soon:
- Example code snippets
- Information about the Unity SDK
- How to obtain a storefront access token
- SDK API Documentation
- How to contribute
- How to Test
By following the steps below you'll install the Shopify SDK for Unity into your Unity project using the shopify-buy.unitypackage:
- Download the latest release of the shopify-buy.unitypackage
- Make sure that your project is open in Unity
- Open the downloaded
shopify-buy.unitypackage
When you are ready to build for a specific platform, please read the Supported build targets section to know how to configure your Player Settings
and Build Settings
in Unity
Checkout our Example Guide.
The Shopify SDK for Unity should work on all platforms which support Unity's Application.OpenURL
. However we've made it much easier for users to checkout on iOS and Android. Below we list out more details about each of these platforms
The Shopify SDK for Unity requires iOS applications to be built using the Xcode 9 and above, have a minimum target SDK of iOS 9 and support Swift 3.
To target iOS see the iOS Build Details
The Shopify SDK for Unity requires Android applications to have a minimum API level of Android 4.4 'Kit Kat' (API Level 19).
To target Android see the Android Build Details