Is this setup for iOS in app purchase correct?

Not favoritedFavorited Favorited 1 favourites
  • 6 posts
From the Asset Store
Create your own casino app and import it to Google Play and the App Store.
  • Hi all!

    I made an app with a free version and a premium version. To access the premium version you have to click on the "premium" button in the homepage, which then triggers the IAP plugin to manage the purchase. On Android this works correctly.

    Yesterday I sent my app to Apple for review, and they came back saying that the in app purchase is not working. Specifically, the button used to buy the premium version is unresponsive.

    Here's the code for the in app purchase:

    To be able to interact with the premium button, the user has to give consent / deny the various privacy policies, which again works correctly.

    Here's the in app purchase in Apple Store Connect:

    I don't understand what I'm doing wrong. If anyone can guide me or has a working implementation to show I would really appreciate it (Not necessarily with the official IAP plugin offered by Construct 3).

    Thank you.

  • Hi.

    I don't have time to understand your code, but I want to help.

    Here is a screenshot of my working purchase and a screenshot from Apstore Connect.

    Just don't forget the restore purchase button, you can't do it without it.

    At the first release of the build with purchases, I created a file in XCode to test the purchases on the simulator to check everything before sending it to the review. But in the next updates I did not use the test file in XCode, but immediately collected and sent for review.

  • Hi! Thank you!

    Your implementation is basically the same as mine. I didn't know about the restore purchase action, should be useful for testing :)

    Just a quick question: your in-app purchases in Apple Store Connect are approved, while mine is "Ready to submit". How does an in-app purchase get approved? Do i just need to submit my app for review with the in-app purchase attached?

    I'll do more testing with my app and see if I find something. Thank you for your time.

  • Yes, you need to submit the new version for testing along with the in-app purchases. Don't forget to add a screenshot of the recovery button in the version comment.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I may have found the issue: if I go on App Store Connect and select the Business panel, a popup comes up saying:

    "To offer apps or other in-app purchases, you must sign the Paid Apps Agreement."

    On Stack Overflow I found out that without this Agreement signed, in-app purchase simply don't work. I'll see if everything works after the account holder solves the issue.

    Also, as you mentioned, I need to add a way to restore purchases. Apple didn’t mention this during the review, but at this point, I’m pretty sure it’s mandatory.

  • Writing to confirm that it was an issue with the Paid Apps Agreement and account configuration.

    After signing the Paid Apps Agreement, you have to add at least one bank account and fill in the tax forms. I am not the manager of the account that I'm using so I had to contact the account owner in order to get these things done.

    The code setup is fine :)

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