How do I add IAP to XDK?

Get help using Construct 2

Post » Thu Sep 25, 2014 3:21 am

Hey Devs,

I have read the Intel article about "IAP in the Intel® XDK"

https://software.intel.com/en-us/html5/articles/iap-in-intel-xdk

It have 5 steps:

1.Add the payment plugin to your XDK project and build an APK
2.Publish the APK in Google Play as an alpha release
3.Add products you want to sell in google play
4.Add the billing key to your init call
5.Rebuild the APK and publish it

And I just don't know what to do with the step 4, it says:
"In google play console click "Services & API's" and locate your YOUR LICENSE KEY FOR THIS APPLICATION . You will need to modify your init call in your javascript file to include the Base64 encoded key.

inappbilling.init(successInit,errorCallback, {showLog:true, key: 'myOwnKeyRSABase64App'})"


I just don't know where should I modify my JavaScript file.

Can someone give me an advice?

Thanks!
B
93
S
31
G
11
Posts: 654
Reputation: 11,832

Post » Thu Sep 25, 2014 3:24 am

Hello @Silverforce I saw your game on Google Play and read that you have been using IAP and XDK in your game.
Could you help me?

Thanks!
B
93
S
31
G
11
Posts: 654
Reputation: 11,832

Post » Thu Sep 25, 2014 3:34 am

Maybe you should search for this string on (/www) XDK files and THEN modify it.
B
34
S
5
G
1
Posts: 164
Reputation: 2,725

Post » Thu Sep 25, 2014 3:44 am

I tried that

Image

But it says, No results found.
B
93
S
31
G
11
Posts: 654
Reputation: 11,832

Post » Thu Sep 25, 2014 7:23 am

Iolva wrote:Hello @Silverforce I saw your game on Google Play and read that you have been using IAP and XDK in your game.
Could you help me?

Thanks!


I believe in the next update, C2 will have a XDK compatible IAP plugin so wait a bit.

Currently I am using cranberrygame's IAP plugin, you can find it in the completed addons forum. Included is a .doc file explaining how to implement it with XDK.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Post » Fri Sep 26, 2014 3:17 pm

@Silverforce

Just a quick question. Do you know if XDK supports Android 4.0+?
Because I read in the "Introducing Crosswalk: the new way to publish to Android" article that
"Crosswalk only supports Android 4.0+"

But when I use the Build option in the Intel XDK it says: "Android 4.2"
Thanks for your time
B
93
S
31
G
11
Posts: 654
Reputation: 11,832

Post » Fri Sep 26, 2014 10:05 pm

Its 4.0+ minimum.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests