Cocoonjs IAP help please

Discussion and feedback on Construct 2

Post » Fri Apr 17, 2015 11:23 pm

Hello everybody,

I decided to go with CocoonJS for my next game, but I cant seem to get the IAP system working on Android (I haven't tested IOS yet). So I was hoping that one of you might be kind enough to assist me, since I am becoming more and more desperate. Here is the issue:

Every time my beta tester tries to purchase something, the payment process successfully goes through and my beta tester gets charged, but still the "on payment failed" event from the cocoonjs plugin gets triggered in my game. So instead of receiving the coins he paid for, he gets nothing and the money is gone too.

Here is a quick screenshot from my event sheet, i blurred out all the unimportant parts: https://www.dropbox.com/s/szrr7mbt8aoj85s/IAP.png?dl=0

Some background details: My google play developer account is all set up, so is my Ludei account. The IAPs are unmanaged in the google developer console since they are consumables, on my Ludei developer console all the necessary boxes are ticked, i also linked my google developer key under my Ludei account and so forth. In Construct 2 the store mode is "managed" for the Cocoonjs plugin and I tried with either sandbox mode enabled and disabled. I am using Construct R200 and the Cocoonjs plugin on github, so everything all up to date.

My second issue is that I cant seem to get the "consume purchase" event to work properly. Since my IAPs are consumables I want to offer the possibility to purchase them multiple times. But when I want to set up the event, the Cocoonjs plugin asks me for a "transaction id"? Anybody knows what that is? I tried to google it, but i wasn't able to find anything.

Any help is highly appreciated, thank you =)
Free Android game: https://play.google.com/store/apps/deta ... VSMrMonkey

"Seven Birds VS Mr. Monkey" is a simple yet fun game.

Mr. Monkey is being attacked by birds and without a way to escape all hope seems lost. But if you think Mr. Monkey goes down that easily you are mistaken!

Help Mr. Monkey to upgrade his skills, get special attacks and show these birds who's the boss!
B
9
S
1
G
1
Posts: 51
Reputation: 755

Post » Tue Apr 21, 2015 11:12 am

Hello,

About the first issue, we will have a look at it. In any case, please, do not use the unmanaged method in the plugin unless you are capable of create your own verification method.

About the second one, there are some expressions you can use:

Image

Regards
B
9
S
4
G
4
Posts: 383
Reputation: 3,616

Post » Tue Apr 21, 2015 6:19 pm

@ludei

Thank you.

I got it working. It was actually my fault for having and old google developer public key attached to my Ludei account. Anyway, everything is working now and products can be purchased multiple times =)
Free Android game: https://play.google.com/store/apps/deta ... VSMrMonkey

"Seven Birds VS Mr. Monkey" is a simple yet fun game.

Mr. Monkey is being attacked by birds and without a way to escape all hope seems lost. But if you think Mr. Monkey goes down that easily you are mistaken!

Help Mr. Monkey to upgrade his skills, get special attacks and show these birds who's the boss!
B
9
S
1
G
1
Posts: 51
Reputation: 755


Return to Construct 2 General

Who is online

Users browsing this forum: sydtes and 4 guests