2014-01-17 46 views
2

我試圖在我的應用程序之一中實現應用程序內購買,並且遇到問題,當我發送沙盒測試的產品請求時,我沒有收到任何產品。我看到很多很老的帖子,像這個(invalid product id from 2010)。 我在做應用購買設置時做了什麼錯誤?有沒有最近的任何教程關於如何配置xCode5在應用程序採購中使用?iOS7 xCode5如何解決2014年應用購買中的「無效產品ID」?

- (void)requestProUpgradeProductData 
{ 

    NSSet *productIdentifiers = [NSSet setWithObject:self.productID ]; 
    productsRequest = [[SKProductsRequest alloc] initWithProductIdentifiers:productIdentifiers]; 
    productsRequest.delegate = self; 
    [productsRequest start]; 

    // we will release the request object in the delegate callback 
} 

下面是該產品的請求回調:創建具有相同數量的重複應用程序ID

- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response 
{ 

    NSArray *products = response.products; 

    for(id object in products) 
    { 
//handle valid products 
    } 

    for (NSString *invalidProductId in response.invalidProductIdentifiers) 
    { 
     NSLog(@"Invalid product id: %@" , invalidProductId); 
    } 
    [hud hide:YES]; 

} 

使用此選項,但不同的名字興田開發人員門戶。我無法刪除該應用程序ID。 enter image description here

enter image description here

這是在應用程序內購買的第一耗材,無需主機內容。該應用程序處於「準備好上傳二進制階段」。它已經超過24小時,因爲我通過itunesconnect

enter image description here

回答

-1

對我來說,解決方案是我必須在開發者門戶中設置銀行信息並啓動付費合約,處理時通常需要15分鐘。

相關問題