Table of Contents

Method LogPurchase

Namespace
Titipi.MocaLib

LogPurchase(Product, string)

Validates and reports an in-app purchase to AppsFlyer. receipt is the raw Unity IAP receipt string (order.Info.Receipt) passed through from OnPurchaseSucceeded. On Android, extracts the purchase token from the receipt JSON for server-side validation via the AppsFlyer SDK. On iOS, uses the transaction ID for App Store validation.

public static void LogPurchase(Product product, string receipt)

Parameters

product Product
receipt string