Method PurchaseProductAsync
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
Returns
- Awaitable<Product>