In-App Purchase for Android ?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hey All,

    I'm very new to the Android Exporter and I'm wondering if In-App Purchase feature is possible?

    I'm clueless about it, I have no idea how to begin but I wonder if it's possible first and if it's based on:
    PayPal? Google Play Store? Amazon? or maybe... it's a General Object for All?

    Can somebody please explain step-by-step how it works since I'm a noob...

    If there is a good Video Tutorial about in-app purchase for Android feel free to share, It will be the BEST way for me to follow and understand because it's more visual and my English isn't very well as you already noticed, sorry about that.

    Thanks ahead! :)

  • In-App purchase you may buy at Clicktore and is for Amazon in-app, work perfectly good.

    In-App comes with the developer version and handles in-app fro Google Play Store.

    In-App have an example that you may see at Help--->Examples---> (a list of folders, search fro in-App)


    in-App purchase comes with an example and an application using for sandbox to test the in-app flow.


    a small help on how to proceed in google dashboard here Please login to see this link.

    Regards,


    Fernando Vivolo

    ... new things are coming ...

  • Thank you so much Fernando!
    This is very helpful and informative, it will also help future Newbies like myself, I appreciate it!

    And now... time to learn the all Android Exporter thingy, good luck to me. :)

  • Hi, Fernando, I've been having trouble with the in-app purchase, I use the example in the folder with the Test InApp Billing Unicode.mfa. when i upload my own file to google and have my own sku the example doesn't work in fact google bring up a error code.

  • One thing I noticed with Google is that if you have a different apk version on your phone than the one that is uploaded in the Google Developer Console, it won't let you buy the in app purchase and say that it's unavailable. Could it be that you made an update with a newer build version locally than what you uploaded to the play store, and that's why you're getting the errors?

    Edit: I don't know which iAPs you're using, but if you're using the non-consumable ones, you only need 4 instructions of code. First you do a 'purchase sku' action on a push of your purchase button, by entering your sku and then the number 1 as parameters, and then a condition to see if purchase id:1 was ok.

    Other than that, you do an 'is billing available' - only one action when event loops to query the inventory for your sku, and after that an 'is sku purchased' condition, so you can set a local variable if it's purchased. These last two instructions will work also to restore purchases automatically in case the user changes his phone.

    If we're talking about consumables, I don't know, because I've never used them before. But for permanent iAPs, these 4 instructions should work fine.

    Edited once, last by Nemeean_lion (March 10, 2019 at 2:25 AM).

  • The test billing works fine that's the one you create in clickteam fusion in app purchase folder. If I create my own sku that's where the problem starts.

    by any chance are you using the same developer account for testing?

    [FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]Please login to see this link.]

  • My Gmail account for testing is completely different. I sent my apk file to a friend and tested it on there phone. This is the error we received.


    Please login to see this attachment.

    Edited 3 times, last by sonic921: no picture attached (March 11, 2019 at 6:33 PM).

  • In-App purchase you may buy at Clicktore and is for Amazon in-app, work perfectly good.

    In-App comes with the developer version and handles in-app fro Google Play Store.
    In-App have an example that you may see at Help--->Examples---> (a list of folders, search fro in-App)
    in-App purchase comes with an example and an application using for sandbox to test the in-app flow.
    a small help on how to proceed in google dashboard here Please login to see this link.

    No In-App that comes with my Dev version
    No example either

  • Hey all! Sorry for reviving this thread yet again. I am running into some challenges with an in-app purchase, which I know should be super easy to fix. I just don't really know what I'm doing. I followed the PDF guide and looked at the (undocumented) examples, but what I'm trying to achieve is slightly different. I don't need a list/inventory, but a single one-time purchase that permanently unlocks more content in the game. The in-app product (with ID 111) is live and can also be bought. The trouble starts afterwards, as I don't know how to make my game recognise that the product has been bought. All I want is to set a general value (which I named "PaidPremium" to 1. In the first screenshots you see my code (you can see that I don't know what I'm doing) and in the second screenshot is a log of the crash... Please help :D

    Please login to see this link.
    Please login to see this link.

    Thanks a ton in advance!

    Greetings from a total noob

  • not sure if item can start with numbers or be all numbers, can you add a new sku which start with alpha letters, "item_111" just to test

    ==============================================

    found this

    Please login to see this attachment.

    Regards,


    Fernando Vivolo

    ... new things are coming ...

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!