store.* (Apple IAP)

Type Library
Revision Release 2024.3703
Keywords Apple, IAP, in-app purchases
Platforms iOS, tvOS

Overview

This library allows you to support in-app purchasing on iOS, including in-game currency, upgrades, and more.

For in-app purchasing on other platforms, see the documentation for Google Billing or Amazon IAP.

Notes
  • This is the legacy version of the Apple store IAP, please use the new Apple IAP Plugin.

  • To use in-app purchases on iOS, you must first configure your iOS certificates, App IDs, and provisioning profiles. Please review our Provisioning and Building guide thoroughly, as this is an essential task and you must complete each step correctly. Also remember to create an App ID that is unique and fully qualified, not a wildcard App ID.

  • Additional configuration must occur within iTunes Connect. If you need assistance with this process, please see Apple’s documentation.

  • For additional functionality, please take a look at Apple IAP plugin.

Syntax

local store = require( "store" )

Properties

store.target

store.isActive

store.canLoadProducts

store.canMakePurchases

Functions

store.init()

store.loadProducts()

store.purchase()

store.finishTransaction()

store.restore()

Events

storeTransaction

productList