Skip to main content

Methods

Renamed methods

Store items now have the name products. The old names still work, but they are obsolete: The two new type names are not source-compatible. If you declared variables as StoreItem and not as var, replace these declarations with Product.

Product types (for GetProductsByType)

ProductType.Consumable · ProductType.NonConsumable · ProductType.Subscription The Product.Type field carries the same value as a string: "CONSUMABLE", "NON_CONSUMABLE", "SUBSCRIPTION".

Product

Grant

PurchaseReceipt

The onSuccess callback of BeginPurchaseFlow gives this object.

PurchaseError

The onError callback of BeginPurchaseFlow gives this object.

Purchase error codes

If Stage is ACKNOWLEDGEMENT, the platform charged the player. The SDK does the acknowledgement again in the background at the next start of the app. You can tell the player that the purchase is in progress.