c# - Reporting product fulfillment with Windows Phone 8 -


my wp8 app has in-app purchase consumable item. it's understanding must report fulfillment of product marketplace upon delivery of item.

so question is, happens if can't? if there's no internet connection example.

any example code i've seen retrieve product listing, call requestproductpurchaseasync , straight after reportproductfulfillment

basically want both succeed or neither... if requestproductpurchaseasync succeeds mean customer charged, if don't report fulfillment?

or should checking currentapp.licenseinformation relevant license, , if isactive true i'm safe assume purchase successful , should report fulfillment. need way of knowing if fulfillment successful can try again if need be.

hope makes sense, if has ideas or can point me in direction of material read i'd appreciate it. thanks.

this how it:

if there no network, u won't proceed purchase experience or user cancels purchase requestproductpurchaseasync throw exception should catch , handle appropriately. fulfillment should done if user purchased item.

await currentapp.requestproductpurchaseasync(productid, false); if (currentapp.licenseinformation.productlicenses[productid].isactive) {      // report fulfillment      currentapp.reportproductfulfillment(productid);      ------------ } 

Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -