Skip to content

Instantly share code, notes, and snippets.

@flurrydev
Created October 10, 2018 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flurrydev/76b370aad5a08adc0671c2f08ddc4019 to your computer and use it in GitHub Desktop.
Save flurrydev/76b370aad5a08adc0671c2f08ddc4019 to your computer and use it in GitHub Desktop.
App Store return product information (Obj-C)
@property (nonatomic, strong) NSMutableArray<SKProduct *> *verifiedProducts;
- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response{
self.verifiedProducts = response.products
// print invalid products and valid products
for (NSString *identifier in response.invalidProductIdentifiers) {
NSLog(@"invalid identifier: %@", identifier);
}
for (NSString *invalid_identifier in response.products) {
NSLog(@"valid identifier: %@", invalid_identifier);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment