The Mobile Buy SDK makes it easy to create custom storefronts in your mobile app, where users can buy products using Google Pay or their credit card.
The Buy SDK includes a comprehensive sample application that covers the SDK's most common use cases. It's built on best practices and our recommended ViewModel
architecture. You can use it as a template, a starting point, or a place to cherrypick components as needed.
Setup ⤴
To run the sample application, you need to provide credentials to the shop that the app will point to:
- Create a private app with a Storefront API access token to access the storefront data. The storefront access token acts as the API key.
- Create
shop.properties
file under the root folder and add next lines:
SHOP_DOMAIN=<your-shop-here>.myshopify.com
API_KEY=<your-api-key>
- Install a virtual device using the AVD Manager and run the sample app on that device.
Contributions ⤴
We welcome contributions. Please follow the steps in our contributing guidelines.
Help ⤴
For help, see the Android Buy SDK documentation or post questions on our forum, in Shopify APIs & SDKs
section.
License ⤴
The Mobile Buy SDK is provided under an MIT License.