2016-03-22 11 views
3

私は一日中、私のアプリで働くためにアプリ内購入をしようと努力してきましたが、私がそれを動かそうとしたことはすべてRMStoreの 'Unkown Product Identifier'私はこのリスト上のすべてを試してみました:http://troybrant.net/blog/2010/01/invalid-product-ids/RMStore In App購入不明Product Identifier

私のコードは次のとおりです。

if ([RMStore canMakePayments]) { 

    _products = @[@"com.afterdark.afterdark.usersaleslisting"]; 

    [[RMStore defaultStore] requestProducts:[NSSet setWithArray:_products] success:^(NSArray *products, NSArray *invalidProductIdentifiers) { 

     NSLog(@"Request Success"); 
     NSString *productID = _products[0]; 
     SKProduct *product = [[RMStore defaultStore] productForIdentifier:productID]; 
     NSLog(@"IAP ID: %@",productID); 
     NSLog(@"IAP TITLE: %@",product.localizedTitle); 
     NSLog(@"IAP PRICE: %@",[RMStore localizedPriceOfProduct:product]); 

     [[RMStore defaultStore] addPayment:productID success:^(SKPaymentTransaction *transaction) { 

      NSLog(@"Payment Succes"); 

     } failure:^(SKPaymentTransaction *transaction, NSError *error) { 

      NSLog(@"Payment Failed: %@",error.localizedDescription); 

     }]; 


    } failure:^(NSError *error) { 

     NSLog(@"Request Failed: %@",error.localizedDescription); 

    }]; 

} 

iTunesの接続 - アプリケーションの購入には:

Itunes Connect - In App Purchases

のXcode - アプリケーションの購入能力の

enter image description here

私は完全にこれを動作させる方法のアイデアが不足している、誰もがアイデアを持っている?どんな助けもありがとう。前もって感謝します。

答えて

0

だから、私はついにこの作業をしました。私はAppleに連絡し、iTunes ConnectでIAPを作成したときにサーバー上で何かが間違っていたために、うまく動作していないという唯一の理由が判明したのですぐに問題を解決しました。

関連する問題