Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

IStoreCallback.OnPurchaseSucceeded

public void OnPurchaseSucceeded(string storeSpecificId, string receipt, string transactionIdentifier);

Parameters

storeSpecificId Product that was purchased.
receipt Purchase receipt.
transactionIdentifier Transaction ID.

Description

Inform Unity IAP of a purchase.

Unity IAP performs local deduplication based on transaction ID; the App's ProcessPurchase method will only be triggered if the transaction has not already been processed.