iOS Buy SDK

The Mobile Buy SDK makes it easy to create custom storefronts in your mobile app, where users can buy products using Apple Pay or their credit card. The SDK connects to the Shopify platform using GraphQL, and supports a wide range of native storefront experiences.

Contents of the SDK

The Mobile Buy SDK includes:

  • The iOS Buy SDK
  • Sample apps that show how you can use the SDK

View the iOS Buy SDK docs (version 3) on GitHub

Prerequisites

Before you can use the iOS Buy SDK, you'll need:

If you want to offer Apple Pay, then you'll need to enable Apple Pay it in the Shopify admin.

Configuring your app

You can configure your mobile app to use Apple Pay and Universal Links in the Shopify admin.

Enable Apple Pay

To enable Apple Pay for your app:

  1. From your Shopify admin, go to Apps.

  2. Click Manage private apps.

  3. Click the name of your app.

  4. In the Storefront API section, click Configure Mobile Buy SDK settings (optional).

  5. In the Mobile Buy SDK (iOS) section, click Enable.

  6. Click Download CSR.

  7. Follow the instructions to generate your Apple Pay certificate, then click Next.

  8. Click Upload certificate and select the certificate you downloaded.

You can set up Universal Links to integrate your app with Safari. When an iOS user taps a link to your website, they'll be redirected to your app if they have it installed.

To set up Universal Links for your app:

  1. From your Shopify admin, go to Apps.

  2. Click Manage private apps.

  3. Click the name of your app.

  4. In the Storefront API section, click Configure Mobile Buy SDK settings (optional).

  5. In the Mobile Buy SDK (iOS) section, enter your Universal links iOS app ID.

Where to get help

Mobile app development falls outside the scope of our support service. This means that we’re not able to help you if you run into problems, unless they're specifically related to the iOS Buy SDK.

Hire a Shopify Expert

Need the job done quickly? View a listing of Shopify Experts for hire.

APIs & Technology forum

Developing Shopify Apps with the API? This is the place to talk to your peers.

Open a GitHub issue

The iOS Buy SDK is open source, so feel free to open a GitHub issue.