iPhone StoreKit - invalid product id's
Posted
by Achim
on Stack Overflow
See other posts from Stack Overflow
or by Achim
Published on 2009-06-25T00:42:36Z
Indexed on
2010/03/21
21:41 UTC
Read the original article
Hit count: 777
I'm trying to test the in App purchase within the sandbox environment.
In order to test the code I
a) created a In App Purchase Test User account under 'Manage Users' in iTunes Connect
b) created some in app purchase products under 'Manage Your In App Purchases'. I used numeric values and alpha-numeric values for the Product ID's.
c) Loaded the app onto the iPhone, went to Settings->Store and logged out of the regular store and into the under a) created test account
d) set a breakpoint in the (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response callback
All the submitted Product ID's are in the response.invalidProductIdentifiers category. When submitting the request I use either the Product ID's used under b) directly or I tried to prefix them with the Bundle ID:
NSString *id2 = @"com.super.duper.8";
NSSet *productList = [NSSet setWithObjects:id2, @"8", nil];
SKProductsRequest *request= [[SKProductsRequest alloc] initWithProductIdentifiers:productList];
Am I missing something obvious? Any help is appreciated.
Achim
© Stack Overflow or respective owner