In App Purchase for Cocos2d-JS V3

  • mehmet
    Likes 0

    Problem Description

    I’m new on Cocos2d-JS. I want to integrate IOS in App purchase …( I have found Soomla but it  doesnt support for V3 )

     

    How can i do this?

     

    Thank you

  • Sonar Systems admin
    Likes 0

    Have you tried it with Soomla though as is?

  • mehmet
    Likes 0

    I dont use Soomla. I use Cocos2d-js V3 but Soomla dont support .

     

     

    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 … I dont understan which i did wrong

     

    How can i fix it?

     

  • Sonar Systems admin
    Likes 0

    It would be best to contact Soomla as we have only used it with Cocos2d-x C++

Login to reply