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

# LinkPurchase()

> Android only: link a Google Play purchase your game made outside Encore's flow to the player, at once.

Links a Google Play purchase made outside Encore's offer flow to the player, at once. Android only: elsewhere it does nothing.

## Signature

```csharp theme={null}
public static void LinkPurchase(string purchaseToken)
```

## Parameters

| Name | Type | Description |
| - | - | - |
| `purchaseToken` | `string` | The Google Play purchase token |

## Example

```csharp theme={null}
Encore.LinkPurchase(purchase.PurchaseToken); // from your billing library's purchase
```

## Notes

* Throws `ArgumentException` when `purchaseToken` is null or empty.
* A call before [`Configure()`](https://docs.encorekit.com/publishers/unity/sdk-reference/configure) is ignored.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.