How do I make IAP work?

Get help using Construct 2

Post » Thu Nov 13, 2014 4:48 am

Hello everyone!

I'm SOOO close to releasing my first game and I've ran across my final bug.

I'm using this plugin https://www.scirra.com/forum/plugin-crosswalk-related-c2-plugins-phonegap_t109586?&hilit=phonegap+crosswalk to manage my IAP transactions, everything works fine; it can connect to google and popup the price and you can purchase stuff and everything, the only issue is that once you've made a purchase none of the IAP plugin conditions run.

I've tried using global variables but that didn't work either, I'm not sure what to do.

Thanks for the help in advance!
B
8
S
1
Posts: 32
Reputation: 437

Post » Thu Nov 13, 2014 5:38 pm

Help please!
B
8
S
1
Posts: 32
Reputation: 437

Post » Fri Nov 14, 2014 7:41 pm

Anyone?
B
8
S
1
Posts: 32
Reputation: 437

Post » Sat Nov 15, 2014 2:02 am

Please...
B
8
S
1
Posts: 32
Reputation: 437

Post » Sat Nov 15, 2014 2:19 am

Could you show the IAP event part in capx?

And did you build crosswalk like this ? (install native plugin automatically) : https://dl.dropboxusercontent.com/u/186 ... index.html
Construct2 Cordova Plugins (currently 87 plugins): https://www.scirra.com/store/construct2 ... ugins-1662

Construct2 Prototype Capx (currently 50 capx): https://www.scirra.com/store/games-with ... -capx-3088

Home page: http://cranberrygame.com
B
65
S
22
G
81
Posts: 780
Reputation: 46,631

Post » Sat Nov 15, 2014 2:55 am

The attached image are parts of the event sheets of individual layouts, the first condition for each of the screenshot is "on start of layout" if you were wondering.

I'm so glad someone answered, thanks for the help!!
You do not have the required permissions to view the files attached to this post.
B
8
S
1
Posts: 32
Reputation: 437

Post » Sat Nov 15, 2014 2:57 am

I'm aware there are a lot of doubles in the events, I was pretty sick of it not working so I was making triple sure that they were activating even though they don't... Also I did build it like the document you sent me says I should.
B
8
S
1
Posts: 32
Reputation: 437

Post » Sat Nov 15, 2014 3:04 am

I'm also not sure what you mean by "install native plugin automatically"? I don't mean to be a pain I'm sorry...
B
8
S
1
Posts: 32
Reputation: 437

Post » Sat Nov 15, 2014 3:10 am

I'm starting to think it might be a problem with the third-party plugin I'm using in Crosswalk? i did this to make it work:

Name: Android IAP
Plugin ID: com.smartmobilesoftware.inappbilling
[x] Plugin is located in the Apache Cordova Plugins Registry
B
8
S
1
Posts: 32
Reputation: 437

Post » Sat Nov 15, 2014 5:05 am

@recksbayne

Your capx' event may have problem

I can't under stand your screen capture's order.
Construct2 Cordova Plugins (currently 87 plugins): https://www.scirra.com/store/construct2 ... ugins-1662

Construct2 Prototype Capx (currently 50 capx): https://www.scirra.com/store/games-with ... -capx-3088

Home page: http://cranberrygame.com
B
65
S
22
G
81
Posts: 780
Reputation: 46,631

Next

Return to How do I....?

Who is online

Users browsing this forum: wizdigitech, Zamargo and 14 guests