InApp Purchase phonegap, "requestproductdata" unsuccessful

Thread is closed for posting
5 posts, 0 answers
  1. Nazmul
    Nazmul avatar
    1 posts
    Member since:
    Aug 2013

    Posted 29 Aug 2013 Link to this post

    Hi All,

    I have added in app purchase plugin in my icenium project. But problem is that when i am requesting product data it always executing unsuccessfull callback and returns "unemplemented service".

    My code is like below - 

    1.var InAppPurchase = window.plugins.inAppPurchaseManager;
    2.InAppPurchase.requestProductData("dinnerIdeaItem1", function(result) {
    3.      InAppPurchase.makePurchase(, 1 /* quantity */);
    4.}, function(id) { //  always executing this fuction.
    5.      alert(id);//
    6.     console.log("[In JS] Invalid product id: " + id);
    7.      }

    I followed

    For creating product in itunes. Actually where is the problem? am i wrong with product creation. Any help appreciated.


  2. Steve
    Steve avatar
    10940 posts

    Posted 30 Aug 2013 Link to this post

    Hello Nazmul,

    The first thing to notice is that this plugin is not plugman compatible and you should create plugin.xml for it to work in Icenium as elaborated in the Making a Custom Plugin Plugman-Compatible help section.

    As for troubleshooting the plugin, according to the "Using the plugin" guide on the plugin Readme, you should use the Application Identifier as first argument of requestProductData and the string dinnerIdeaItem1 is not a valid Application Identifier.

    In general we're not well familiar with 3rd party plugins and if you continue to experience problems with the plugin, it would be best to contact the plugin authors for help using the plugin or ask for community help on stack overflow.


    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
  3. Jeff
    Jeff avatar
    22 posts
    Member since:
    Sep 2013

    Posted 25 Jun 2014 Link to this post

    That project is not even found on GitHub anymore.  Did it move?
  4. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 26 Jun 2014 Link to this post

    Hi Jeff,

    It seems that the InAppPurchaseManager repo was deprecated. However, if you're looking for an implementation of in-app purchases on an iOS device, I would recommend examining the 3 Steps Tutorial for PhoneGap In-App Purchase.

    The tutorial discusses PhoneGap-InAppPurchase-iOS plugin which you can easily import in an AppBuilder project following these steps.

    I hope this information helps.

    Tina Stancheva

    Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

  5. Jeff
    Jeff avatar
    22 posts
    Member since:
    Sep 2013

    Posted 26 Jun 2014 in reply to Tina Stancheva Link to this post

    That does help, Tina.  Thank you!
Back to Top