Skip to content

In-App Purchases and Onchain Gaming

Joan Alavedra, Co-Founder at Openfort•4 min read
In-app purchase integration with onchain gaming and blockchain wallets

In-app purchases (IAP) are a core part of mobile gaming, but integrating them with onchain assets requires navigating strict policies from Apple and Google. This guide explains how to bridge traditional payment systems with blockchain wallets while remaining compliant with store rules.

See how Openfort powers Web3 gaming with embedded wallets, gas sponsorship, and session keys.

What is Onchain In-App Purchase (IAP)?

Onchain IAP is the process of selling digital assets, like NFTs or tokens, within a mobile app using the platform's native payment system. To stay on the App Store or Google Play, developers must use the standard in-app purchase flow for most transactions, which often involves a commission. Openfort helps studios manage this by bridging the gap between a player's app store purchase and the delivery of an onchain asset to their smart wallet.

Understanding Platform Policies for IAP in Onchain Games

Apple App Store IAP Policies for Onchain 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

  • 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

IAP-diagram-web3games.svg

STEPN, an onchain 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 your 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 onchain 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

Related Articles

  1. Casual Gaming’s Role in Crypto Adoption

    Dive into how Openfort enables game studios to integrate onchain mechanics into casual gaming titles while preserving simplicity and user retention

  2. Beyond the Early Web3 Game and the Rise of New Categories

    Explore the potential of Web3 games, which incorporate blockchain elements such as smart contracts and NFTs, to disrupt the traditional gaming industry.

  3. Top Tools for Onchain Game Development

    Explore the best tools for building immersive onchain games with secure, scalable wallet solutions

  4. Cross-App Wallets Explained: One Identity, Every App

    How cross-app (or "global") wallets give users a single, portable identity across multiple apps and chains — and how to ship one with Openfort.

  5. Cross-Game Ecosystems in Web3

    Learn how Openfort supports cross-game interoperability for connected Web3 gaming experiences

  6. NFT Minting Use Cases in Gaming

    Learn how game developers are leveraging Openfort’s tools to enable frictionless NFT minting for rewards, access, collectibles, and digital identity

  7. Mobile Wallet Protocol for Unity, a public good

    This powerful feature is now available to all game developers, enabling seamless connections between in-game wallets and the broader Web3 ecosystem.

  8. How to Build an Onchain Game: Best Practices & Metrics Guide

    Explore our comprehensive guide on building a successful onchain game. Learn essential metrics and best practices to boost project performance. Read now!

Ship your first wallet in minutes

No credit card required • 2,000 operations free