In app billing question

12 posts, 0 answers
  1. Josh
    Josh avatar
    22 posts
    Member since:
    Oct 2013

    Posted 23 Sep 2014 Link to this post

    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". 


















  2. Tsvetina
    Admin
    Tsvetina avatar
    1876 posts

    Posted 26 Sep 2014 Link to this post

    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.

     
  3. Josh
    Josh avatar
    22 posts
    Member since:
    Oct 2013

    Posted 23 Oct 2014 in reply to Tsvetina Link to this post

    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?

  4. Tsvetina
    Admin
    Tsvetina avatar
    1876 posts

    Posted 28 Oct 2014 Link to this post

    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.

     
  5. Julien
    Julien avatar
    7 posts
    Member since:
    Nov 2010

    Posted 29 Nov 2014 Link to this post

    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?
  6. Josh
    Josh avatar
    22 posts
    Member since:
    Oct 2013

    Posted 30 Nov 2014 in reply to Julien Link to this post

    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. 
  7. Julien
    Julien avatar
    7 posts
    Member since:
    Nov 2010

    Posted 30 Nov 2014 in reply to Josh Link to this post

    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 
  8. Gianni
    Gianni avatar
    2 posts
    Member since:
    Dec 2013

    Posted 14 Dec 2014 in reply to Julien Link to this post

    Hello Julien,

    in wich folder you put the billing_key.xml file ? Did you change some config files ?
    thank you
  9. Tsvetina
    Admin
    Tsvetina avatar
    1876 posts

    Posted 17 Dec 2014 Link to this post

    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.

     
  10. Priya
    Priya avatar
    2 posts
    Member since:
    Dec 2015

    Posted 18 Dec 2015 in reply to Julien Link to this post

    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

     

     

  11. Martin Yankov
    Admin
    Martin Yankov avatar
    177 posts

    Posted 22 Dec 2015 Link to this post

    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.

     
  12. Priya
    Priya avatar
    2 posts
    Member since:
    Dec 2015

    Posted 22 Dec 2015 in reply to Martin Yankov Link to this post

    Thanks Josh, thats a useful link.
Back to Top