In-game purchases
Consumable and permanent purchases through the Bridge, and the purchase flow from support check to consumption.
Introduction
In-game purchases (IAP) let players buy items, upgrades, or currency alongside ad monetization. Playgama Bridge supports consumable and permanent purchases across supported platforms. The rules purchases must follow are section 2.4 of the Advertising and Payments Requirements.
Types of in-game purchases:
Consumable: single-use items (e.g., boosters, lives, in-game currency). Ideal for temporary boosts or resource replenishment.
Permanent: items that remain with the player permanently (e.g., skins, characters, levels).
Supported platforms: In-game purchases are currently available on Playgama, Yandex, MSN, Samsung and Facebook.
Revenue share: You receive a percentage of the revenue from purchases made in your games. The exact revenue share details are available in the Developer Terms & Conditions.
Implementation
Define the items available for purchase: item IDs, names, short descriptions, and prices. Make sure all product descriptions and prices are accurate and up to date.
If you're uploading a game to Playgama, you'll need to check the box indicating that your game includes in-app purchases on the game submission page, and fill in all the required parameters (product_id, price in USD, type). Playgama will handle the conversion to internal currency automatically.
See SDK setup for SDK installation instructions.
Purchase flow
Check support. Show the shop only when
payments.isSupportedistrue; otherwise hide it or offer the items for rewarded ads or in-game currency.Load the catalog. Read prices with
payments.getCatalog()and show them exactly as returned, in the platform's currency (item 2.4.2).Process what is already paid. At startup, read
payments.getPurchases(): restore permanent items, and grant and consume any consumable purchase left over from a session that ended mid-purchase (items 2.4.5–2.4.6).Buy. Call
payments.purchase(id)and grant the item only when it succeeds; nothing is granted on cancel or failure (item 2.4.3).Consume. Right after granting a consumable item, call
payments.consumePurchase(id)— until then the same product cannot be bought again (item 2.4.4).Save. Save the new state through Storage right after the purchase (see Saving progress).
Catalog and pricing recommendations are in Ads best practices.
Engine-specific examples are available in the child pages of this section.
Last updated