Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try to add plugix iapios in cocos2dx-lua,there are some problems #113

Open
lpcdma opened this issue Dec 15, 2014 · 0 comments
Open

try to add plugix iapios in cocos2dx-lua,there are some problems #113

lpcdma opened this issue Dec 15, 2014 · 0 comments

Comments

@lpcdma
Copy link

lpcdma commented Dec 15, 2014

The first time I tried to complete such a code, please understand.
I use the sandbox test account, I think the result should be a JSON string,but I can't get it.

void ProtocolIAP::onPayResult(PayResultCode ret, const char* msg)
{
_paying = false;
if (_listener)
{
_listener->onPayResult(ret, msg, _curInfo);
}
else
{
PluginUtilsIOS::outputLog("Pay result listener of %s is null!", this->getPluginName());
}

_curInfo.clear();
PluginUtilsIOS::outputLog("Pay result of %s is : %d(%s)", this->getPluginName(), (int) ret, msg);

}
in this code ret is 0 to complete the purchase,and the _listener is null,cannot Lua callback function

If I want to get the JSON string pay for results, and will be the string callback to Lua, how should I do? Please help, thank you!

thanhnm91 pushed a commit to Senspark/CocosXtension that referenced this issue Jun 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant