Offical IAP plugin. Consumables not getting "Consumed" &....

0 favourites
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • Problem Description

    I wrote an article to fix the error occurring when your try to build your game on Intel XDK.

    https://www.scirra.com/tutorials/1376/f ... iap-plugin

    I added the official C2 IAP and built my game using Intel XDK. Was able to update it on Google Play store too.

    I add my IAPs already setup on Google Console and they worked fine with the PhoengapIAP plugin. That is, I was able to purchase the items and coins from the App.

    Now with the Official C2 plugin I am able to complete the purchases without any issues,

    However , the Prices are appearing only if you have bought the Products in the past! They dont appear if you didnt buy the item (Price appears as blank)!

    Secondly and the most significant issue is that there is no way to mark a "Consumable items" as "Consumed". After I purchase a Consumable, like a Pack of Coins, the Product gets locked and Google Store doesnt allow me to buy that pack again.

    I usually upload a sample CAPX to show what I am experiencing, but in this case, I am not sure how to reprod the issue, since it runs on the store.

    Attach a Capx

    Plugin Issue is on the Google Store

    Description of Capx

    NA

    Steps to Reproduce Bug

    • Create a sample Consumable IAPs on Google Store
    • Create a C2 project and add officail IAP plugin
    • Create button to trigger pruchase
    • Write events to handle Purchase of the consumable product
    • Export to Android and Build on Intel XDK (follow my article to avoid build error)
    • Sign and upload the APK on Google Store
    • Open App and click button to purchase consumable.
    • After successful purchase, try buying same item again by clicking the button
    • Google Play does not initiate the purchase again

    Observed Result

    Google Play does not initiate the purchase again when a consumable was bought in the past

    Expected Result

    Google Play should allow you to repurchase a consumable again.

    Affected Browsers

    • Chrome: (NA)
    • FireFox: (NA)
    • Internet Explorer: (NA)

    Operating System and Service Pack

    Windows 8.1 SP1

    Construct 2 Version ID

    R196.2

  • Any response from C2 team or Ashley? Or should I continue my looking for another IAP plugin?

    This one fix will help me (and many of us) maintain a single version of C2 file for 2 or more platform.

  • Can you atleast post a screenshot of your IAP events or make a sample .capx? I'm not having any issues with this so it might be something in your set up.

  • volkiller730/matt sure. I will to do that. BTW I thought you are using the cranberriesgames' PhoneGapIAP and not the official C2 plugin.

    Cranberrygames' plugin can consume items.

    Official plugin cannot, I went through the official IAP plugin code, there doesn't seem to be a function to consume a purchased product

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I do use cranberrygame's plugin. I made i test version with official plugin and tested it once ill have to go back and try again maybe your right and it is a bug .

    It might be easier just to use cranberry's plugin it works great

  • Yes cranberries plugin works great! But I really wanted to have a single version of game that can be used on both windows and android. Few MS folks on the facebook C2 page said that the offical IAP works well with windows 8.

    May be I shud switch back to my complex messy double IAP code

    Thanks for testing the plugin too!!

    BTW on cranberries' plugin does it show you the prices for u purchased products?

    I m storing the product is in an instance variable of each textbox. And on Store Listing complete event

    , I m doing a for loop to fetch prices for each textbox. But then I get prices only for the ones I purchased in the past. Doesnt matter if its durables or consumables.

    Could u please check that too?

    I havent been able to get to my laptop all day. Will try to post my event sheet tomorrow.

    Thank u so much for ur help

  • volkiller730 I switched back to cranberries's IAP. But now I get the following error on XDK build screen!! How did you fix this issue?

    Error: Plugin failed to install: https://github.com/cranberrygame/com.cranberrygame.phonegap.plugin.iap#4306f62a0d9683eca8d8be135533dd92f6a446c1 (https://github.com/cranberrygame/com.cranberrygame.phonegap.plugin.iap#4306f62a0d9683eca8d8be135533dd92f6a446c1)
    [/code:1zxt9uhj]
  • are you using his newest IAP?

  • Yes the "cranberrygame_PhonegapIAP_2.0.32"

    But I had the same issue with "cranberrygame_PhonegapIAP_2.0.30" too

  • Hi Ashley,

    Would your team be able to add the "Consume" feature in the next update please?

  • We need an IAP plugin that works! Please!

  • The IAP plugin does not support consumables at this time, so this is more a feature request than a bug report.

    The prices will only display after a successful request of the store listing. In order to review a bug like that we would need a .capx as per the bug report guidelines, but IAP bugs are tricky to diagnose, since it also depends on how you have configured the store and we can't easily match that.

  • The IAP plugin does not support consumables at this time, so this is more a feature request than a bug report.

    The prices will only display after a successful request of the store listing. In order to review a bug like that we would need a .capx as per the bug report guidelines, but IAP bugs are tricky to diagnose, since it also depends on how you have configured the store and we can't easily match that.

    Thanks Ashley. The IAP plugin works perfectly for first time purchases. Only requirement is for it to work on Visual Studio is your App needs to be on Store. After that you can directly test the IAP from Visual Studio 2013.

    As for the feature request, would you consider this Thread as a request or Do we have to submit a separate request?

    Thanks!

  • Yeah, I think we all need a "consumable" option for IAP, that would be a great thing

  • you could use the PayPal plugin to avoid the IAP issues. there is one commercial one that allows you to use your paypal merchant buttons, and not sure what you say about consumables? you mean in game consumables? you could sell 1 item in your merchant account, that in game will trigger a replenishment of a consumable(e.g buy item 100xbullets, when bought in game will give u 100 bullets, but you need to do the events for it, there is no plugin that will do that for you, you have to have knowledge of How API's works and paypal plugins. )

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)