6 Replies Latest reply: Oct 30, 2014 3:27 PM by Nathan Marroquin RSS

    Strange Behavior on Restore Purchases

    ElChepo Community Member

      Hi, I'm working with an app viewer with custom store front using the library 2.30 of Adobe DPS Library And Store SDK, but when I try restore purchases the behaviour is strange. If I try restore a purchase with an account that buy all folios and after I restore purchases with an account that never buy any folio all folios remains as purchased, in the source code all folios comming with this properties:

       

      isPurchasable : false,

      isDownloadable : true,

       

       

      The function isFree of folio object returns always false for all folios, however the folio appear in the viewer like downloadable object.

       

      If I install my viewer on new device I see all folios with price:

       

      Screenshot 2014.05.29 10.13.01.png

       

      Now I try restore purchases with an account that buy all folios:

       

      Screenshot 2014.05.29 10.14.44.png

      The restore is successfully.

      Screenshot 2014.05.29 10.21.51.png

      Now if I try restore purchases with other account that never buy a folio this is the result:

       

      Screenshot 2014.05.29 10.23.57.png


      Now the folios remains like downloadable, not purchasable:

      Screenshot 2014.05.29 10.24.15.png

       

       

      From this moment and every time that I erase my App and re install on device always all folios with any account remains like purchasable. Only restore de device to default configuration the viewer show the price of folios.

       

      For more details I'm restore the purchases with this method:

       

       

      var tRestorePurchases = adobeDPS.receiptService.restorePurchases();

      tRestorePurchases.completedSignal.addOnce(Store.onRestorePurchasesCompleted);

      On my function onRestorePurchasesCompleted Just repaint the page for show all folios with new properties from new account.

       

      Do you know what is the problem? or What am I doing wrong?

       

      Thank you