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

Bugs will be moved here once resolved.

Post » Wed Feb 11, 2015 12:39 pm

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
Create your own Isometric Runner Game using C2:

Image

Check out my game "Last of the Survivors":
Play Store
App Store
B
60
S
14
G
2
Posts: 427
Reputation: 5,564

Post » Fri Feb 13, 2015 3:53 pm

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.
Create your own Isometric Runner Game using C2:

Image

Check out my game "Last of the Survivors":
Play Store
App Store
B
60
S
14
G
2
Posts: 427
Reputation: 5,564

Post » Sat Feb 14, 2015 3:44 am

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.
B
42
S
17
G
2
Posts: 850
Reputation: 6,209

Post » Sat Feb 14, 2015 8:49 am

@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
Create your own Isometric Runner Game using C2:

Image

Check out my game "Last of the Survivors":
Play Store
App Store
B
60
S
14
G
2
Posts: 427
Reputation: 5,564

Post » Sat Feb 14, 2015 10:02 pm

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
B
42
S
17
G
2
Posts: 850
Reputation: 6,209

Post » Sat Feb 14, 2015 10:11 pm

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 :)
Create your own Isometric Runner Game using C2:

Image

Check out my game "Last of the Survivors":
Play Store
App Store
B
60
S
14
G
2
Posts: 427
Reputation: 5,564

Post » Wed Feb 18, 2015 2:22 am

@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?

Code: Select all
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)
Create your own Isometric Runner Game using C2:

Image

Check out my game "Last of the Survivors":
Play Store
App Store
B
60
S
14
G
2
Posts: 427
Reputation: 5,564

Post » Wed Feb 18, 2015 2:51 am

are you using his newest IAP?
B
42
S
17
G
2
Posts: 850
Reputation: 6,209

Post » Wed Feb 18, 2015 3:06 am

Yes the "cranberrygame_PhonegapIAP_2.0.32"
But I had the same issue with "cranberrygame_PhonegapIAP_2.0.30" too
Create your own Isometric Runner Game using C2:

Image

Check out my game "Last of the Survivors":
Play Store
App Store
B
60
S
14
G
2
Posts: 427
Reputation: 5,564

Post » Sat Feb 28, 2015 10:44 am

Hi @Ashley,

Would your team be able to add the "Consume" feature in the next update please? :)
Create your own Isometric Runner Game using C2:

Image

Check out my game "Last of the Survivors":
Play Store
App Store
B
60
S
14
G
2
Posts: 427
Reputation: 5,564

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest