The Customer Sample App demonstrates how to perform several tasks using the customer API.
- Login customer
- Create customer account
- Fetch customer orders
### Configuration
First, configure the application with your shop domain, API key and app ID.
```swift
letshopDomain:String=""
letapiKey:String=""
letappID:String=""
```
### Overview
The Customer Sample App demonstates the usage of the customer API that lets you create a customer account, login with a customer account and show customer's orders after authentication.
You can allow customers to login with their existing account using the SDK. First, we'll need to create the `BUYAccountCredentials` object used to pass authentication credentials to the server.
// Do something with customer and store token for future requests
}else{
NSLog(@"Failed to create customer: %@",error.userInfo);
}
}];
```
Consult the [Usage Section](https://docs.shopify.com/mobile-buy-sdk/ios/integration-guide/#using-the-mobile-buy-sdk) of the Integration Guide on how to create a cart, and checkout with the SDK.
### Integration Guide
Consult the [Usage Section](https://docs.shopify.com/mobile-buy-sdk/ios/integration-guide/#using-the-mobile-buy-sdk) of the Integration Guide on how to create a cart, checkout and more with the SDK.