In-App Purchase, Google Play, Linux

Hi! I use cocos2d-x(C++) in Ubuntu.

What can I used for In-App Purchase for google play?

Can I use SDKBOX?

SDKbox doesn’t work on Linux. You would need to implement it with Google SDKs. For purchasing I’m not sure what the Ubuntu store has for functionality.

1 Like

yes, I think you can use SDKBox on platform which you can develop android app.

require Python 2.7.x, not Python 3.x.

python -c """import urllib; s = urllib.urlopen('https://raw.githubusercontent.com/sdkbox-doc/en/master/install/install.py').read(); exec(s)"""

cd MyGame
sdkbox import iap

http://docs.sdkbox.com/en/installer/

Thanks,

1 Like

I read it that he was developing Linux games. But good point he is probably developing for Android on Linux.

1 Like

Yes. You are right. I’m developing for Android on Linux.

Thank you. I’ll try SDKBOX.

Why my terminal can’t find sdkbox command?
It’s wrote “command not found” on Russian.

PATH need to be modified?

I don’t know what need to modify.

There is my $PATH

open another terminal or source ~/.bash_profile .

sdkbox is at:

~/.sdkbox/bin/sdkbox

Thanks,

Thank you! It’s realy help me! But I got error.

#FATAL: Failed to find source file /home/chelovek/.sdkbox/plugins/sdkbox-iap_v2.4.1.1/plugin/android/jni/pluginiap
Installation failed :frowning:

How can I get pluginiap?

I’ve already tried to change directory from PluginIAP into pluginiap, I got new fail.

WARNING <<<
Some installation steps failed.
Please refer to the online documentation, for instructions on how to complete the installation manually.
Installation completed with errors :expressionless:

There is my /home/chelovek/.sdkbox/plugins/sdkbox-iap_v2.4.1.1/plugin/android/jni/ directory.

you file system is case-sensitive, and sdkbox should take care this case.

have you change cocos2d-x engine ?
I think I need a ubuntu to test this issue.

I did’t change cocos2d-x engine.

Will I wait your test? Or I must search another way?

plz try http://docs.sdkbox.com/en/plugins/iap/v3-cpp/#manual-integration-for-android .

This manual doesn’t work for me. I have other path and other files on my system.

Nobody like Linux. :frowning:

This is platform independent manual, but you should have Android/iOS development skills for this.

This manual tell me

Copy the following jar files from plugin/android/libs folder of this bundle into your project’s /libs folder.

PluginGooglePlay.jar

PluginIAP.jar

sdkbox.jar

But I haven’t file PluginGooglePlay.jar

I must copy these files in

frameworks/cocos2d-x/cocos/platform/android/java/libs
frameworks/cocos2d-x/cocos/platform/android/libcocos2dx/libs

But I have’t libs directory in path frameworks/cocos2d-x/cocos/platform/android/libcocos2dx/

It too difficult for me.