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

# Selling your game

> Set a price, let players buy by card or with Gamavas coins, check who owns your game, and get paid.

With Gamavas Pass, your game can be paid. Players buy it once, on Gamavas's checkout, and own it on every device where they sign in.

## Set a price

On your app's **Store** page in the [developer portal](https://developer.gamavas.fun), set a price from $0 (free) to $1,000. A free game counts as owned by everyone who signs in.

## Gate your game on ownership

Check ownership after sign-in. If the player doesn't own the game, offer the checkout:

```js Web theme={"theme":{"light":"github-light","dark":"github-dark"}}
if (!(await pass.owns())) {
  const bought = await pass.purchase(); // call from a click: it's a popup
  if (!bought) return;                  // closed without buying
}
startGame();
```

```csharp Unity theme={"theme":{"light":"github-light","dark":"github-dark"}}
if (!await GamavasPass.OwnsAsync())
{
    if (!await GamavasPass.PurchaseAsync()) return;
}
StartGame();
```

```gdscript Godot theme={"theme":{"light":"github-light","dark":"github-dark"}}
var owned = await GamavasPass.owns()
if owned.ok and not owned.value:
    var bought = await GamavasPass.purchase()
    if not (bought.ok and bought.value):
        return
start_game()
```

In Construct, use **Check ownership** and **Purchase**; in GameMaker, `gamavas_owns` and `gamavas_purchase`; in Defold, `gamavas.owns` and `gamavas.purchase`.

`purchase()` resolves `true` once the player owns the game, or `false` if they closed the checkout. On the web the checkout is a popup, so call it from a click. On desktop and mobile it opens the browser and checks every few seconds until the game is owned, for up to 15 minutes.

## How players pay

The checkout offers **card**, through Gamavas's payment provider, and **Gamavas coins** the player bought. Free coins from rewards can't buy games.

## What you earn

You get **90%** of the price; Gamavas keeps 10%. Each sale's money is held for 14 days, in case of refunds and chargebacks, then becomes available to withdraw.

Your earnings are on the **Payouts** page of the developer portal. Before your first payout, Gamavas needs a one-time identity check. One check covers every payout, including Weekly Premier winnings. You choose where you're paid on your Gamavas earnings page.

## Refunds

A player can get a refund within **14 days**, if they've played for **less than 2 hours**. A refund takes the game back, and your share comes out of your held earnings. Chargebacks work the same way. Gamavas staff can also refund outside these rules.

Your server hears about all of this through [webhooks](https://docs.gamavas.fun/pass/webhooks.md): `order.paid`, `order.refunded` and `entitlement.revoked`.

## Check ownership on your server

If your server unlocks paid content, check there too, with a secret key:

```ts theme={"theme":{"light":"github-light","dark":"github-dark"}}
const { owned, free, priceCents } = await gamavas.entitlement(player.id); // @gamavas/pass-server
```

## Selling in mobile apps

> [!WARNING]
>
> The App Store and Google Play have their own rules for selling digital content inside apps, and buying through Gamavas's checkout can break them. Check their rules before offering `purchase()` in a store build. Checking ownership is fine everywhere, so a game bought on the web still unlocks in your app.

## Try it without paying

Use [test mode](https://docs.gamavas.fun/pass/test-mode.md): a free test checkout for you and your testers.


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