Windows Phone 8: In app purchase screen not showing -


i'm trying add in-app purchase functionality game made unity3d in c#. knowledge when user initiates purchase - clicks 'buy' button within game should taken purchase screen?

without going details of how plugins work, function being called phone initiate purhase:

private static async task<string>purchaseupgrade(string id) {     var listings = await currentapp.loadlistinginformationasync();      var purchaseitem = listings.productlistings.firstordefault(x => x.value.productid == id &&                                                                 x.value.producttype == producttype.durable);     try     {         if (currentapp.licenseinformation.productlicenses[purchaseitem.value.productid].isactive)         {             return false.tostring();         }         else         {             receipt = await currentapp.requestproductpurchaseasync(purchaseitem.value.productid, true);             return true.tostring();         }     }     catch (exception w)     {         return w.tostring();     } } 

this gets called when user clicks 'buy' button within unityplayer.

this first time i've worked iap knowledge when else block entered contains line:

receipt = await currentapp               .requestproductpurchaseasync(purchaseitem.value.productid, true); 

it should 'bring up' purchase screen? confirm purchase?

anyway not case, got experience this?

this guide test iap in local machine local iis web service , wp8 emulator

http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj681689(v=vs.105).aspx


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -