Launch week // DEC 16-20An entire week of new feature announcements

Learn more

Navigating In-App Purchases in web3: A Comprehensive Guide in Unity

4 min read

IAP-web3.svg

In-app purchases (IAP) for web3 games involve transactions for digital assets, such as non-fungible tokens (NFTs) and cryptocurrency tokens, within mobile applications. Developers working on blockchain-based games must navigate strict policies set by both Apple's App Store and Google Play Store, which have a significant impact on how these transactions are conducted. Here’s an updated guide on handling IAPs in Web3 games, with insights from the latest policies on both platforms.

Understanding Platform Policies for IAP in Web3 Games

Apple App Store IAP Policies for Web3 Games

  • NFT Sales and Transactions: Apple permits developers to list, mint, transfer, and view NFTs within apps, as long as these actions do not unlock additional features or functionality.
  • Mandatory In-App Purchase System: All NFT transactions must go through Apple's in-app payment system, which subjects them to Apple's standard commission.
  • NFT Verification Requirements: Apple requires comprehensive details regarding NFTs, including their origin, ownership, and provenance, for listing on the App Store.
  • Restrictions on External Links: Apps cannot include links or calls to action that direct users to purchase NFTs outside of the Apple in-app payment system.

Google Play Store IAP Policies for Web3 Games

  • NFT Integration: Google allows the integration of NFTs into apps but mandates full transparency about the nature of tokenized digital assets.
  • Transparency and Compliance: Developers must clearly communicate the risks and details surrounding NFTs and are prohibited from promoting potential earnings from tokens.
  • Adherence to Gambling Policies: Google Play enforces compliance with its Real-Money Gambling, Games, and Contests policy, ensuring that games with tokenized assets follow strict guidelines.

Fee Structures for IAP in Web3 Games

  • Apple: Apple charges a 30% commission on all NFT sales made through its in-app purchase system, regardless of the developer's revenue.
  • Google: Google Play also applies a tiered fee structure, taking a 30% cut from developers earning over $1 million annually and a 15% fee from those making less than $1 million.

Case Study: How STEPN Manages IAP in Web3 Games

IAP-diagram-web3games.svg

STEPN, a Web3 game, offers an excellent example of how to navigate IAPs within a blockchain-based mobile game. The game uses multiple in-game currencies, including two ERC-20 tokens and a third in-game currency specifically for iOS:

  1. Sparks: A soft currency available only through Apple Pay.
  2. $GMT: The primary token for unlocking features and leveling up.
  3. $GST: The secondary token for speeding up unlocks.

Here’s how the IAP process works on iOS:

  1. Players purchase Sparks using Apple Pay.
  2. They use Sparks to buy sneaker NFTs, which are priced 30% higher than market value to cover Apple's commission. The primary marketplace is on Magic Eden, where items are priced in SOL.
  3. Players can optionally send $GMT, $GST, SOL, or USDC into the in-app wallet to use for unlocks and leveling up.
  4. Players can list their sneaker NFT for sale.
  5. If the NFT sells, players receive $GMT as the transaction currency.
  6. Players can then swap currencies within the app and transfer funds to an external wallet.

STEPN has streamlined its IAP system, allowing users to transact easily across different currencies while maintaining compliance with Apple's policies. It also separates in-game and non-custodial wallets, giving users full ownership of their assets.

Integrating IAP in you games using Unity

Apple_IAP_Unity_Sample_4a667ba30f.png

At Openfort, we provide two comprehensive guides for integrating Unity IAP with both Android and iOS platforms. These resources are designed to help developers navigate platform policies while maintaining Web3 functionality.

Note: Both Apple and Google frequently update their policies, so be sure to stay informed and adapt accordingly. If you have any questions, feel free to reach out to us.

Share this article