Game Development Reference
In-Depth Information
Adding in-app purchases
• To make an IAP request in an Unreal Engine game, you will need to add a single
node called Make An in-App Purchase , assign the current player controller to it,
and pass Product Identifier as a string from the iTunes Connect account. Then,
you can make different scenarios based on the result. For example, if the player
purchases a pack of in-game currency, you can add the amount of the currency to
the player's profile on success or you can display an error message on the UI on
failure.
• Also, you can return the IAP information from the output In App Purchase In-
formation and then you can break down this information into more detail by using
the Break InAppPurchaseProductInfo node, which can give you different strings
that you can use to display some messages to the player.
• With another node called Read in App Purchase Information , you can pass all
the product identifiers as an array string, and it will return all the information re-
lated to them. You can then use this information to display some sort of text inside
the game store. This is useful if you change some information later, as this way
you don't have to make an update to the game to update the store information. If
the store gets its information directly from the iTunes Connect identifiers, then it
will get the information once you change it. Let's say you changed the price of a
product; using Read in App Purchases Information at the beginning of the game
will ensure that the most recent test data to be displayed in the game store is re-
turned to you.
Search WWH ::




Custom Search