Interface IIapPurchaseVerificator
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.
productis the purchased product.receiptis the raw Unity IAP receipt string (order.Info.Receipt). CallonValidatedwith the server's verdict (falsemeans the receipt was examined and rejected — the purchase is discarded), oronErrorwhen validation could not complete (the purchase stays pending and is retried next launch).