> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.qonversion.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Make a Purchase — Unity

Get the product using its ID from the Qonversion [Dashboard](https://dash.qonversion.io/entitlements/products).

```csharp theme={null}
Qonversion.GetSharedInstance().Products((products, error) =>
{
    if (products.TryGetValue("your_product_id", out var product))
    {
        // Use product to make a purchase
    }
});
```

Then initiate the purchase where needed in your app.

```csharp theme={null}
Qonversion.GetSharedInstance().Purchase(product, (result) =>
{
    if (result.IsSuccess)
    {
        if (result.Entitlements != null &&
            result.Entitlements.TryGetValue("premium", out var premium) &&
            premium.IsActive)
        {
            // Grant user access to premium features
        }
    }
    else if (result.IsCanceled)
    {
        // Handle canceled purchase
    }
    else if (result.IsPending)
    {
        // Handle pending purchase
    }
    else
    {
        // Handle errors
    }
});
```
