c# - IAP doesn't work in real WP8 store -


This is the code in my Windows Phone 8 project that tests a product ID key that I have used when using the mockiepe Then everything works in the development, but after the release of my app, I can not buy it at the online store. Game crash

My app is using PhoneGrap 2.3.0 and loaded via an iframe. It executes the purchase () using the Cordova plugin

Is this other poeple enforcing IAP for their WP8 app (i.e. download all listing information first)?

  Private Assessment Purchase () {ListingInformation li = Wait Store.CurrentApp.LoadListingInformationAsync (); If (li.ProductListings.ContainsKey (package_ID)) {string pID = li.ProductListings [package_id] Manufacturer; Var receipt = wait Store.CurrentApp.RequestProductPurchaseAsync (PID, true); ParseXML (receipt); PrepData (); HttpPostData (); Store.CurrentApp.ReportProductFulfillment (PID); }}   

This app is put in the store:

  • In-app Product ID: Pack 1
  • Type: Consumable < / Li>
  • In-app product nickname: 1000 credits
  • Base price: 0.99 USD
  • State: Published
  • Tag: any information
  • No information available
  • App product details: Available Information or nothing provided

    More detail: Here is the step when the purchase () is executed

    1. A postmass is sent from the web app inside the IFrame inside the cover that executes the Cordova plugin.

      pm.bind ('buy', function (e) {cordova.exec (app.purchase_success, app .purchase_failure, "InAppPurchase", "purchase", [e.package_id, e.user_id])}, Rooturl);

    2. Then I deserialize and user_id variables in json object package_ id

    3. Then I execute bu (Y);

      Try to ensure that you are calling Buy with UI thread Store .CurrentApp.RequestProductPurchaseAsync is used for us to crash if it is not called from.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -