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

IAP cannot callback. #116

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

IAP cannot callback. #116

lpcdma opened this issue Dec 25, 2014 · 0 comments

Comments

@lpcdma
Copy link

lpcdma commented Dec 25, 2014

plugin-x/protocols/platform/android/ProtocolIAP.cpp 41
if (pIAP != NULL)
{
pIAP->onPayResult((PayResultCode) ret, strMsg.c_str());
}
else
{
ProtocolIAP::ProtocolIAPCallback callback = pIAP->getCallback();
if(callback)
callback(ret, strMsg);
}
plugin-x/protocols/platform/ios/IAPWrapper.mm 42
if (iapPlugin) {
iapPlugin->onPayResult(cRet, chMsg);
}else if(callback){
std::string stdmsg(chMsg);
callback(cRet,stdmsg);
} else {
PluginUtilsIOS::outputLog("Can't find the C++ object of the IAP plugin");
}
There is a logic error, if you use the Lua, not the callback.

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