Table of Contents

Interface IIapPurchaseVerificator

Namespace
Titipi.MocaLib2

Implement this interface to plug in a custom server-side receipt validator. Set the implementation via SetPurchaseVerificator(IIapPurchaseVerificator).

public interface IIapPurchaseVerificator

Methods

ValidatePurchase(Product, string, Action<bool>, Action<string>)

Validates a purchase asynchronously. product is the purchased product. receipt is the raw Unity IAP receipt string (order.Info.Receipt). Call onValidated with the server's verdict (false means the receipt was examined and rejected — the purchase is discarded), or onError when validation could not complete (the purchase stays pending and is retried next launch).