您好,我想添加測試inAppPurchase在我的iphone應用程序。我看到了各種教程,並試圖實現它,但我得到了無效的產品標識符中的所有產品。以下是我已採取添加inAppPurchase :關於inApp購買的問題
1)我創建了一個不帶通配符的新appID並啓用了inAppPurchase。
2)我已經創建了一個基於該應用程序ID的分發供應配置文件。
3)創建一個應用程序在iTunes連接與我的應用程序相同的名稱。
4)在App購買產品中創建一個具有唯一ID的產品,並將其清除出售。
5)我已經使用了第1層。
6)我已經IOS完成免費申請合同,但我還沒有填寫支付應用形式IOS
7)我曾經嘗試都「上傳二進制和拒絕它」和「沒有上傳任何二進制」
我的代碼是
- (void)requestProUpgradeProductData
{
NSSet *productIdentifiers = [NSSet setWithObject:@"com.my uniques product id" ];
productsRequest = [[SKProductsRequest alloc] initWithProductIdentifiers:productIdentifiers];
productsRequest.delegate = self;
[productsRequest start];
}
- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response
{
NSArray *products = response.products;
UIAlertView *alert=[[UIAlertView alloc]initWithTitle:@"started" message:[NSString stringWithFormat:@"%i",[response.invalidProductIdentifiers count]] delegate:nil cancelButtonTitle:@"ok" otherButtonTitles:nil];
[alert show];
[alert release];
}
這裏我得到我的產品ID爲無效。我不知道什麼可能是錯誤與我的方法或code.Please告訴我正確的方法在我的應用程序來測試inAppPurchase
讓我知道它是否有效。 –
你能給我你的Skype ID嗎? 我需要一些幫助 – sajwan