TheMonetizr SDK makes it simple to sell physical products inside your mobile app. With a few lines of code, you can let your users buy products using Apple Pay or their credit card.
TheMonetizr SDK requires Shopify’s Mobile Buy SDK distributed under MIT license
Official documentation can be found on the TheMonetizr website.
Install Shopify’s Mobile Buy SDK
Add Monetizr-SDK to your Xcode project.
- Import the header
#import "Monetizr.h";
- Setup and enable Apple Pay in your project (Optional)
Find setup instructions on Apple developer website and The Monetizr website. Use Certificate Signing Request (CSR) provided by TheMonetizr.
- Configure Monetizr.plist
@{
@"apiUrl": @"", // Provided by TheMonetizr
@"applePayMerchantId": @"", // Optional
@"appId": @"", // Provided by TheMonetizr
@"shopDomain": @"", // Provided by TheMonetizr
@"apiKey": @"", // Provided by TheMonetizr
@"developerApiKey": @"", // Provided by TheMonetizr
};
- To open product view using Product ID
[Monetizr showProductWithID:@"Provided product ID"]
- To open product view using Product ID and get callback
[Monetizr showProductWithID:@"11645793606" completion:^(BOOL success, NSError *error)]
- To open product view using Product TAG
[Monetizr showProductForTag:@"TAG" forUser:@"user"]
- To open product view using Product TAG and get callback
[Monetizr showProductForTag:@"TAG" forUser:@"user" completion:^(BOOL success, NSError *error)]
For help, please contact TheMonetizr.
TheMonetizr SDK is provided under an MIT Licence. See the LICENSE file