Note that there are some explanatory texts on larger screens.

plurals
  1. POWindows 8 Metro Inapp purchases for Dummies
    primarykey
    data
    text
    <p>am ready to deploy my second windows 8 metro style javascript app and i would love to include in app purchases. I tried implementing it with the following code i got from here <a href="http://msdn.microsoft.com/en-us/library/windows/apps/hh694067.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/windows/apps/hh694067.aspx</a></p> <pre><code>function appInit() { // some app initialization functions // Get current product object // Execute only one of these statements. // The next line is commented out for testing. // currentApp = Windows.ApplicationModel.Store.CurrentApp; // The next line is commented out for production/release. currentApp = Windows.ApplicationModel.Store.CurrentAppSimulator; // We should have either a real or a simulated CurrentProduct object here. // Get the license info licenseInformation = currentApp.licenseInformation; // other app initializations function } function buyFeature1() { if (!licenseInformation.productLicenses.lookup("featureName").isActive) { currentApp.requestProductPurchaseAsync("featureName", false).then( function () { // the in-app purchase was successful }, function () { // The in-app purchase was not completed because // there was an error. }); } else { // The customer already owns this feature. } } </code></pre> <p>But nothing seems to happen.i know this is a novice question. but i'l be glad if someone can provide a full simple working solution.Btw i've read the docs and downloaded the sample.i also have my storeproxy.xml file setup.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload