"description": "> To set up In App Purchase, you'll need a developer account on Google Play Console or Apple App Store Connect. You will also need **real phones/devices** to test IAP, because emulators are not supported.\n\nIt's highly recommended to **read the [help page](http://wiki.compilgames.net/doku.php/gdevelop5/extensions/in-app-purchase) to begin**. \n\n> ⚠️ In-App Purchase **will only work after you exported your game and uploaded it to Google Play Console or Apple App Store Connect**, at least in a testing track.\n\nThe general worflow is the following:\n\n- Register your products on the Google Play Console or App Store Connect,\n- In your game, register the same products using the action *\"Register an item\"*,\n- Call the action to finalize the store registration,\n- Wait for \"the store is ready\" condition to be true,\n- Get the items data to know what to display (in particular the *price* of each items),\n- Display the price and available items in your game,\n- Register a variable that will be updated when an item purchase is approved (and other variables for when other things happen),\n- When the player clicks on an item, use the action to order it,\n- If the purchase is approved (the variable you set up is set to true), give the user what they bought,\n- Mark the purchase as completed for the user to be charged the money\n",
0 commit comments