Table of Contents

Method PurchaseProductAsync

Namespace
Titipi.MocaLib2

PurchaseProductAsync(string, Action)

Initiates a purchase flow for the given product ID and awaits its completion. Returns the purchased Product on success, or throws an Exception whose message contains the failure reason on failure. onStartValidate fires when server-side receipt validation begins (optional).

public static Awaitable<Product> PurchaseProductAsync(string productId, Action onStartValidate = null)

Parameters

productId string
onStartValidate Action

Returns

Awaitable<Product>