I am trying to use Apple In-App purchase in my application's development mode. I have created test In-App product on iTunes connect (Ready to Submit) and trying to fetch product identifiers in my code but its saying invalid identifier
Please tell me that how i can test In-App purchase in development mode (app not submitted to live yet)
Steps i have used
- created In-App product on my iTunes connect account which have status Ready to Submit
- enabled In-App purchase in my Xcode project
- using iAPHelper class downloaded from here - https://github.com/saturngod/IAPHelper
- using following code to access products
But its returning my product id as invalid identifier. don't know what wrong i am doing.
if(![IAPShare sharedHelper].iap) {
NSSet* dataSet = [[NSSet alloc] initWithObjects:@"com.mydomain.app.test", nil];
[IAPShare sharedHelper].iap = [[IAPHelper alloc] initWithProductIdentifiers:dataSet];
}
[IAPShare sharedHelper].iap.production = NO;
[[IAPShare sharedHelper].iap requestProductsWithCompletion:^(SKProductsRequest* request,SKProductsResponse* response)
{
if(response > 0 ) {
SKProduct* product =[[IAPShare sharedHelper].iap.products objectAtIndex:0];
NSLog(@"Price: %@",[[IAPShare sharedHelper].iap getLocalePrice:product]);
NSLog(@"Title: %@",product.localizedTitle);
}];