0

私はin appの購入の例で(ゆっくり)作業しています。 Store for my appで2つのアプリでの購入を作成しました。私はそのアプリケーションにVisual Studioをリンクしています。私はアプリ内での購入をリクエストしてコールバック関数に入ると、やっとエラーは出ませんでした。Windows Universal App-In Appの購入

エラー:それは2があるアプリの購入に何があると思いませんさせることができるもの

var ProductsARR = []; 

var storeContext = Windows.Services.Store.StoreContext.getDefault(); 
var productKinds = ["Consumable", "Durable", "UnmanagedConsumable"]; 
storeContext.getAssociatedStoreProductsAsync(productKinds).then(function (addOns) { 
    var i; 
    if (addOns.extendedError) { 
     if (addOns.extendedError === (0x803f6107 | 0)) { 
      alert("This sample has not been properly configured."); 
     } else { 
      // The user may be offline or there might be some other server failure. 
      alert("ExtendedError: " + addOns.extendedError.toString()); 
     } 
    } else if (addOns.products.size === 0) { 
     alert("No configured Add-ons found for this Store Product."); 
    } else { 
     for (i = 0; i < addOns.products.size;i++){ 
      var item = { 
       title: addOns.products[i].title, 
       price: addOns.products[i].price.formattedPrice, 
       inCollection: addOns.products[i].isInUserCollection, 
       productKind: addOns.products[i].productKind, 
       storeId: addOns.products[i].storeId 
      }; 

      ProductsARR .push(item); 
     } 
    } 
}); 

:それは2

マイコードがなければならないとき0製品があると言います?

混乱を引き起こす可能性があるのは、実際のxapproductをまだ店舗に提出していないということだけですが、残りのコードを完成させるまではやりたくありません。私は今、アプリ内の購入コードに取り組んでいます。それは問題を引き起こしているのでしょうか?

もしそうでなければ、それ以外の原因が考えられます。私のダッシュボードでは、アプリ内購入は「店内」となっています。

答えて

1

The only thing I think could be causing confusion is I have not submitted the actual xapproduct to the store yet, but I do not want to do that until I have fleshed out the rest of the code.

あなたはCurrentAppSimulatorクラスをprovding Windows.ApplicationModel.Storeとは異なり、テスト中にライセンス情報をシミュレートするために使用できるクラスを提供していないWindows.Services.Store名前空間を、使用しています。したがって、テスト用にライセンスを使用するには、アプリを公開して開発デバイスにダウンロードする必要があります。

このアプリは、実際のバージョンではなく、Windows App Certification Kitの最小要件を満たす基本的なアプリです。また、最初にhide this appを選択して、テスト中にお客様のアプリが表示されないようにすることもできます。

テストのガイダンスの詳細については、Test your in-app purchase or trial implementationを参照してください。

2

商品を店舗に提出する必要があります。彼らは認定プロセスを経て、「あなたの製品Xが認定されました」という2つの電子メールを受け取るべきです。

この製品が表示されず、ベータ版のみで使用できるようにするには、「Storeでこのアプリを非表示にする」に設定されていることを確認してください。

Here's some info

関連する問題