Asset - Extension Google Play Billing extension

Discussion in 'Marketplace' started by kroart, Apr 26, 2019.

  1. kroart

    kroart Member

    Joined:
    Jun 16, 2018
    Posts:
    22
    Hi everyone. I decided to publish another extension that I use in the game I work on. It's a Google Play Billing extension. This extension integrates Google Play Billing library as it seems from its name)

    For now it has very limited functionality: in only can query purchased items and make a purchase. And do not support purchase consuming and subscription. But purchase consuming is already in my tasks list and I'm working on it. Also subscriptions are in probable plans for our game so if nothing will change then subscriptions should be added in the future.

    And the key feature that this extension has it's a purchase verification as it described in google's documentation here: https://developer.android.com/google/play/billing/billing_library_overview#Verify-purchase-device
    Verification on a device it's not so secure as verification on a server but it's far more secure than no verification at all)

    The extension is available here: https://marketplace.yoyogames.com/assets/8189/google-play-billing it's free and also I provide a link to my Android Studio project from where I develop this extension so everyone can extend it by its own. Or wait until I add missing features)
     
    chirpy, Sanj and Guest like this.
  2. kroart

    kroart Member

    Joined:
    Jun 16, 2018
    Posts:
    22
    UPD. I've updated the extension. Now it supports purchase consuming. Also in case of failures the extension stores purchase tokens and try to consume them until successfully they will be consumed. Even after game restart it will continue trying.
     
    Andrey likes this.
  3. Mert

    Mert Member

    Joined:
    Jul 20, 2016
    Posts:
    432
    Hello kroart. Your extension is just looks delicious! I believe you'll bring-in the subscriptions option as well.
    I also make free extensions and share them in the forums. I sent you a message. Please check.

    Thanks

    Edit : I've talked with the author and put a tutorial on my blog, sample codes with syntax highlighting, some pictures and tips for you guys to implement it easily. The extension is super awesome guys!
    Here's the link to the tutorial
     
    Last edited: Apr 29, 2019
    Mool, chirpy, Andrey and 1 other person like this.
  4. Mool

    Mool Member

    Joined:
    Nov 6, 2016
    Posts:
    125
    Hi @kroart i am writing an IAP Extension too and I use GoogleDocs, your extension and the YoYo extension as example.

    Now I have one problem:

    Code:
    BillingResult responseCode = billingClient.launchBillingFlow(RunnerActivity.CurrentActivity,
                                        flowParams);
    doesnt nothing. NO ERRORS and no purchase Window does open. Any idea?

    - I am connected
    - skuDetails are ok. I get right callbacks from Google:

    no_ads
    1,19 €
    Disable ads forever!
     
    Last edited: Jan 11, 2020
  5. Mool

    Mool Member

    Joined:
    Nov 6, 2016
    Posts:
    125
    FIXED!

    Seems like my current uploaded beta version has no billing permision in it, or something like that. WITH "android.test.purchased" as SKU the
    launchBillingFlow() does work.
     
  6. kroart

    kroart Member

    Joined:
    Jun 16, 2018
    Posts:
    22
    Great)
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice