This is a migrated thread and some comments may be shown as answers.

InApp Purchase phonegap, "requestproductdata" unsuccessful

4 Answers 57 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nazmul
Top achievements
Rank 1
Nazmul asked on 29 Aug 2013, 10:09 AM
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(result.id, 1 /* quantity */);
4.}, function(id) { //  always executing this fuction.
5.      alert(id);//
6.     console.log("[In JS] Invalid product id: " + id);
7.      }
8.);

I followed https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/13_ManagingIn-AppPurchases/ManagingIn-AppPurchases.html#//apple_ref/doc/uid/TP40011225-CH4-SW1

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

Thanks
Nazmul

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 30 Aug 2013, 03:38 PM
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.

Regards,
Steve
Telerik

Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Jeff
Top achievements
Rank 1
answered on 25 Jun 2014, 05:39 PM
That project is not even found on GitHub anymore.  Did it move?
0
Tina Stancheva
Telerik team
answered on 26 Jun 2014, 04:56 PM
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.

Regards,
Tina Stancheva
Telerik
 

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

 
0
Jeff
Top achievements
Rank 1
answered on 26 Jun 2014, 06:11 PM
That does help, Tina.  Thank you!
Tags
General Discussion
Asked by
Nazmul
Top achievements
Rank 1
Answers by
Steve
Telerik team
Jeff
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or