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

In app billing question

11 Answers 149 Views
Google Android
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Josh
Top achievements
Rank 1
Josh asked on 23 Sep 2014, 02:26 PM
I'm installing the in app billing plugin found here: https://github.com/poiuytrez/AndroidInAppBilling/tree/master/v3

It has the following instructions:

### Finish setting up your app
* Create a release apk of your app and sign it.
* Create a new application in the Developer Console.
* Upload your apk
* Enter the app description, logo, etc. then click on save
* Add in-app purchases items from the Developer Console (activate them but do not publish the app)
* Click on Services and APIs to get your public license key
* Create `res/values/billing_key.xml`, and add your public key as follows:

```
<?xml version='1.0' encoding='utf-8'?>
<resources>
    <string name="billing_key">MIIBIjANBgk...AQAB</string>
</resources>
```

* Wait 6-8 hours
* Install the signed app on your test device in release mode. The Google Account on the test device should not be the same as the developer account).
* Read carefully the Google testing guide to learn how to test your app : http://developer.android.com/guide/google/play/billing/billing_testing.html
* You can test purchase with no charge by adding google test account in your developer console -> 'Settings -> gmail accounts with testing access".
Usage




So, where do I put the billing key? I gather from wandering around forms and things that the "res" folder in telerik appbuilder is actually the app_resources/android folder, but I cannot create a new folder in that folder called "values". 


















11 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 26 Sep 2014, 10:46 AM
Hello Josh,

I assume that you are trying to create the new folder in the AppBuilder Windows client where modifying App_Resources manually isn't allowed. If so, you can open your project online from your Telerik Platform account and create the needed folder there.

Regards,
Tsvetina
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
Josh
Top achievements
Rank 1
answered on 24 Oct 2014, 01:21 AM
OK, so I've moved to a different plugin, and yes, you told me  how to add a file, but I still do not have an answer to my question. Where do I put the android license key? How is this not a bigger issue? Is no one using telerik for in app billing on android?

I've got these links for information, but they pertain to phonegap build or phonegap cli, neither helps because telerik has it's own version of file structure and whatnot. Nothing I've tried actually works. This license key has to go somewhere, anyone?

https://github.com/poiuytrez/AndroidInAppBilling/blob/master/v3/README.md#finish-setting-up-your-app
https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin/issues/27
http://www.adamwadeharris.com/sign-publish-phonegap-app-google-play-store-windows/
http://community.phonegap.com/nitobi/topics/how_to_add_an_android_licence_public_key_to_the_phonegap_build_of_an_app


Phonegap Build has a way to submit this key - does telerik?

0
Tsvetina
Telerik team
answered on 28 Oct 2014, 02:01 PM
Hello Josh,

From the plugin description, it seems like you have to add the file in the plugin directory, under res/values (in AppBuilder Plugins/AndroidInAppBilling/res/values/billing_key_param.xml) and put in it:
<?xml version='1.0' encoding='utf-8'?>
<resources>
    <param name="BILLING_KEY" value="MIIBIjANBgk...AQAB" />
</resources>

where value is your own value.

Another way is to use this plugin:
cordova-plugin-purchase

Its instructions in terms of settings inside the app are quite easy to follow. To add the preference setting in AppBuilder, right-click the project name and navigate to Edit Configuration -> Android Config.xml. There, you can add this preference along with the existing ones.

Regards,
Tsvetina
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
Julien
Top achievements
Rank 1
answered on 30 Nov 2014, 02:11 AM
With the plugin cordova-plugin-purchase, I've followed everything as they ask. But my store is never a ready state...

Did you experienced the same issue?
0
Josh
Top achievements
Rank 1
answered on 30 Nov 2014, 09:05 PM
I gave up on ever attempting to use cordova for in app purchases again. After months of trying everything, waiting for plugins, requesting help from everywhere, I still couldn't get things to work. Moving on to other forms of monetization. 
0
Julien
Top achievements
Rank 1
answered on 30 Nov 2014, 09:12 PM
Hi Josh

I've perfectly succeed with this plugin. Tested on iOS and Android, with AppBuilder.
https://github.com/j3k0/cordova-plugin-purchase

If you have other questions feel free to ask 
0
Gianni
Top achievements
Rank 1
answered on 14 Dec 2014, 03:35 PM
Hello Julien,

in wich folder you put the billing_key.xml file ? Did you change some config files ?
thank you
0
Tsvetina
Telerik team
answered on 17 Dec 2014, 01:44 PM
Hi Gianni,

As also suggested in the support thread, try putting the file in the App_Resources/Android/values folder (you need to create it), as shown in the attached screenshot.

Regards,
Tsvetina
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
Priya
Top achievements
Rank 1
answered on 18 Dec 2015, 11:06 AM

Hi Julien

I have did all settings as mentioned in https://github.com/j3k0/cordova-plugin-purchase, though i dono how to startup with the coding (linking my buy button to inapppurchase). Could you send some samples or links to get started!! I know this is far behind but i'm just a beginner for app development.

Thanks

 

 

0
Martin Yankov
Telerik team
answered on 22 Dec 2015, 04:38 PM
Hello,

Telerik now provides a verified Cordova plugin for integrating in app purchase functionality. You can find it here along with documentation and a sample app that can guide you. The easiest way to load the app is to click on the "Load in AppBuilder" button.

I hope this helps.

Regards,
Martin Yankov
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
Priya
Top achievements
Rank 1
answered on 23 Dec 2015, 05:45 AM
Thanks Josh, thats a useful link.
Tags
Google Android
Asked by
Josh
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Josh
Top achievements
Rank 1
Julien
Top achievements
Rank 1
Gianni
Top achievements
Rank 1
Priya
Top achievements
Rank 1
Martin Yankov
Telerik team
Share this question
or