You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
thanhnm91
pushed a commit
to Senspark/CocosXtension
that referenced
this issue
Jun 21, 2016
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());
}
}
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!
The text was updated successfully, but these errors were encountered: