Created
October 10, 2018 22:00
-
-
Save flurrydev/76b370aad5a08adc0671c2f08ddc4019 to your computer and use it in GitHub Desktop.
App Store return product information (Obj-C)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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