我正在iOS SDK中的inapp購買工作,並且我完成了在iTunes中創建應用程序和非易耗品應用程序中的所有步驟在iTunes中管理inapp購買connect.my應用程序狀態是等待上傳像下面的屏幕截圖:如何在iTunes中測試我的inapp購買連接
和我inappurchase狀態準備提交
代碼明智的inapp-購買功能完成,但是,我測試我的應用程序是SKProductsRequest返回沒有找到任何產品...!
我主要的應用程序軟件包ID喜歡com.mycompany.myapp,
和我的應用程序內包ID喜歡com.mycompany.paidapp。
他們如何測試inapp購買步驟可以任何人指導我,請.. ..!
我的示例代碼是在這裏:
- (void)loadStore {
if ([SKPaymentQueue canMakePayments]) {
NSLog(@"Parental-controls are disabled");
request = [[SKProductsRequest alloc] initWithProductIdentifiers:[NSSet setWithObject:@"com.mycompany.paidapp"]];
//request.delegate = self;
[request setDelegate:self];
[request start];
}
else {
NSLog(@"Parental-controls are enabled");
}
}
- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response {
SKProduct *validProduct = nil;
int count = [response.products count];
if (count > 0)
{
validProduct = [response.products objectAtIndex:0];
NSLog(@"Products found!");
[[NSNotificationCenter defaultCenter] postNotificationName:kProductsLoadedNotification object:@"Product Found..!"];
} else if (!validProduct)
{
NSLog(@"No products available");
[[NSNotificationCenter defaultCenter] postNotificationName:kProductsLoadedNotification object:@"Product Not Found..!"];
}
}
返回命令提示符總是在下面的NSLog輸出:
No products available
com.mycompany.paidapp產品是否存在於應用內購買商店? –
任何人都可以幫助我,請.... .... – Dinesh
@Mitesh Khatri不存在應用商店...! – Dinesh