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

Cocos2d-js V3 onRequestProductResult callback error #151

Open
cocosfan opened this issue Mar 28, 2015 · 0 comments
Open

Cocos2d-js V3 onRequestProductResult callback error #151

cocosfan opened this issue Mar 28, 2015 · 0 comments

Comments

@cocosfan
Copy link

This is my code (i have found pluginx for cocos2d-js)

onRequestProductResult: function (ret, productInfo) {

    cc.log(ret);

    cc.log(productInfo);

    var msgStr = "";

    if (ret == plugin.ProtocolIAP.RequestProductCode.RequestFail) {

        msgStr = "request error";

        cc.log(msgStr);

    } else if (ret == plugin.ProtocolIAP.RequestProductCode.RequestSuccess) {

        console.log("Product Request Success");

        this.product = productInfo

        cc.log(productInfo);

    }

}

Console log is 449229635.775578 for productInfo … This is meaningless
I dont understan which i did wrong

How can i fix it?

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