Closed gclsoft closed 10 years ago
What username are you using for testing ?
You need to use test account from iTunes Connect.
Logout the current account from Phone Setting > iTunes & App Store > Click on App ID > Singout
After singout , please try again.
Thanks so much! OK now! Can I ask one more question? SKProduct* product =[[IAPShare sharedHelper].iap.products objectAtIndex:0]; I'm not sure the index 0 or 1 which one is I want, can I just give a product ID to get the product?
You can use like that
NSString *productIdentifier = @"myproduct.name.identifier";
NSArray *result = [[IAPShare sharedHelper].iap.products filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"productIdentifier == %@", productIdentifier]];
if(result.count > 0 )
{
SKProduct *product = result[0];
}
Thanks! It's great! Works well!
In viewDidLoad:
Buy:
Why can't buy when I press buy button? Is there any IAPHelp project example to download?