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
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.
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?
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.
Did you experienced the same issue?
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
in wich folder you put the billing_key.xml file ? Did you change some config files ?
thank you
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.
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
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.