The Mobile Buy SDK ships with a sample application that demonstrates how to build a custom storefront on iOS. Using this sample application, a user can browse your shop's products and collections, add merchandise to a cart, and then checkout using Apple Pay or a web checkout.
The sample application is pre-configured with credentials to a test shop and requires no setup to build and run. You can also run the sample application with your own shop by following the steps below:
- Make sure that you have the Mobile App channel installed in your Shopify admin.
- From your Shopify admin, navigate to the Mobile App channel, and then copy your API key.
- Open the Sample Application project in
Sample App > Storefront > Storefront.xcodeproj
- Open
Client.swift
, and then insert your API key and shop domain:
final class Client {
static let shopDomain = "yourshophere.myshopify.com"
static let apiKey = "2dce9587e0f140ac84aaec25847e9d35"
...
}
The Mobile Buy SDK is provided under an MIT License. See the LICENSE file