CocoonJS IAP Checklist

0 favourites
  • Humm sure I have followed this to the letter, even made another app on Google Play.

    Any one have a working IAP for a Managed Product in the Google Play Store?

    1. Screenshot of the Construct Cocoonjs plugin settings (managed/unmanaged etc)

    2. Screenshot of Construct code.

    3. Screenshot of Google play settings

    4. Screenshot of Cocoonjs settings

    Help. If I ever get this going I will post these up.

    Thanks.

  • Nofish - do IAPs only work for non-consumables?

  • I only test non-consumables.But I think it works for all type.

  • Nofish - ok thanks.

    Was there anything special you had to do outside of the instructions to get things working?

    For me the purchases fail every time, and I have no idea what the cause is either <img src="smileys/smiley19.gif" border="0" align="middle" />

  • The instructions include all thing.

    I only test iap on IOS.

    The pic Uk4dee post help me to understand the restore action will trigger the "on purchase completed".Don't use the "Is prudoct purchased".

    By the way I finally set the stroe mode to Managed.I'm not sure whether this effect IAP restore.

  • Nofish - I ended up starting a new project just to make sure I hadn't missed anything. It worked, but I noticed that when I made the purchase, I kept getting prompted to login to itunes, even though I was already logged in with a test account.

    When I logged in it would pop up a new message "Verification Required", and just repeated the same process over and over again.

    Did you ever get anything weird like that?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Guys, good news - I emailed Ludei, and they've said that they have an update in a couple of weeks or so that will upgrade their store functionality. Hopefully this will clear up any of the issues that we're experiencing.

  • Uk4dee (just adding you as you have been very helpful earlier)

    Is there any options to get the error message when the purchase fails?

    I have set everything up now, got the app in the google play store etc.

    When i hit the button i have made to do the purchase it ends up in the:

    CocoonJsAds --> on <myproduct> purchase failed

    is there any option to get the error message it returns? would make it easier to figure out what is not working.

    On a side note:

    There is a "Store sandbox" option on the CocoonJsAds object. Should that be enabled or disabled when you upload to google play for testing?

  • Nofish, Uk4dee - what are the expected results once you have executed the "Purchase Product IAP" action?

    For me in iOS, it pops up with the following things:

    1. "Confirm your In app purchase" (It references the correct iap I set up in itunes connect

    2.I hit Buy, and then it comes up with: "Verification Required"

    3. I hit continue, and it prompts me to enter my Apple ID Password, which I do

    4. Then it take me to itunes, and pops up with "[environment sandbox]"

    5. I hit continue, and it prompts me to enter my Apple ID password again

    6. repeats the entire cycle again

    If I cancel at any point, the whole process fails.

    I think I'm getting close, but I'm still missing something. <img src="smileys/smiley18.gif" border="0" align="middle" />

  • Check these setp

    In In-App Purchases (once you've enable store above) in configuration put you IOS Share Secret Key and Tick Sandbox mode for TESTING.

    Add your Product to the Available Products (same ID as the ones set-up on Apple/Google i.e. com.appname.premium), these are for testing.

    If you not yet release your app on the applestore , you need a ios device without jailbreak to test IAP in sanbox.

    Purchase Product only purchase the product. If you already purchased. It will failed.

    you need add a restore purchase button.

    Restore Purchase action will check your purchased and tigger the Purchase success.

    My iap app has just been released.I found it will not purchase success on the store. But it success in the sandbox environment. I think I need to upload a new no iap version for the time being.

    itunes.apple.com/us/app/sweets-monster-halloween/id660610227

  • Nofish - that's a shame that the IAP doesn't work now that it's in the store - your game looks really awesome!

    I agree with you, I think I might have to just switch to paid too if things aren't worked out in the next week or so. This is so frustrating though <img src="smileys/smiley11.gif" border="0" align="middle" />

  • by the way, when you say tick sandbox mode, do you mean "Debug Mode"?

    There seems to be no sandbox mode tickbox in the configuration page.

  • Ok I made a little more progress:

    I created a brand new test user in itunes connect. From doing a bit of research I read one developer signed out of his ipad, and did not sign back in even with the test account

    I followed this and activated the IAP. This time, the purchase actually completed - great! <img src="smileys/smiley4.gif" border="0" align="middle" />

    However, after I hit Buy, it keeps prompting me continuously to make the purchase. If I hit cancel at any time, it stops but then the purchase shows failed.   <img src="smileys/smiley18.gif" border="0" align="middle" />

    Ah well, getting slightly closer...

  • YES!!! I think I finally got it to work <img src="smileys/smiley4.gif" border="0" align="middle" /> <img src="smileys/smiley4.gif" border="0" align="middle" /> <img src="smileys/smiley4.gif" border="0" align="middle" />

    The problem was my own fault I think. I triggered the purchase with a "Is in Touch with" condition. However, the touch would have triggered several purchases per tick. I fixed this and now it works fine in the sandbox.

    I thought I'd share it here:

    <img src="http://www.eyemobi.com/images/cjsiap.jpg" border="0" />

  • The IAP seem work in the store. But the purchase sucess delay someday.I receive the purchase success information today.

    you can use "is touching object"and "on any touch end" to do tigger once action.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)