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, 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:
if (!(await pass.owns())) { const bought = await pass.purchase(); // call from a click: it's a popup if (!bought) return; // closed without buying}startGame();
if (!await GamavasPass.OwnsAsync()){ if (!await GamavasPass.PurchaseAsync()) return;}StartGame();
var owned = await GamavasPass.owns()if owned.ok and not owned.value: var bought = await GamavasPass.purchase() if not (bought.ok and bought.value): returnstart_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: 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:
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: a free test checkout for you and your testers.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Gamavas Docs","description":"Build on Gamavas: sign players in, reward them with achievements and XP, sell your game, and host it on the edge.","colors":{"primary":"#5724FF","light":"#9B7BFF","dark":"#5724FF"},"logo":{"light":"https://mintcdn.com/alubasa-labs/h0b6U38_kDipnks9/logo/light.png?fit=max\u0026auto=format\u0026n=h0b6U38_kDipnks9\u0026q=85\u0026s=00d42a5ea7e2dad151ae25487c63c4a2","dark":"https://mintcdn.com/alubasa-labs/h0b6U38_kDipnks9/logo/dark.png?fit=max\u0026auto=format\u0026n=h0b6U38_kDipnks9\u0026q=85\u0026s=d41a05b3840617a183b04107c2c6e0e0","href":"https://docs.gamavas.fun"},"favicon":"https://mintcdn.com/alubasa-labs/h0b6U38_kDipnks9/favicon.png?fit=max\u0026auto=format\u0026n=h0b6U38_kDipnks9\u0026q=85\u0026s=8e82f49f993f314cfcaf950f45f946cc","api":{"playground":{"display":"interactive"},"examples":{"languages":["curl","javascript","python"]}},"appearance":{"default":"system","strict":false},"background":{"color":{"light":"#FAFAFD","dark":"#0A0A0F"}},"navbar":{"links":[{"href":"https://github.com/Gamavas","type":"github"}],"primary":{"type":"button","label":"Developer portal","href":"https://developer.gamavas.fun"}},"footer":{"socials":{"github":"https://github.com/Gamavas","website":"https://gamavas.fun"}},"seo":{"metatags":{"canonical":"https://docs.gamavas.fun"},"indexing":"navigable"},"icons":{"library":"lucide"},"styling":{"codeblocks":{"theme":{"light":"github-light","dark":"github-dark"}},"latex":true},"errors":{"404":{"redirect":true,"title":"Page not found","description":"Try the [introduction](/) or search the docs."}},"contextual":{"options":["copy","view","chatgpt","claude","cursor"],"display":"header"},"navigation":{"global":{"anchors":[{"anchor":"Developer portal","icon":"layout-dashboard","href":"https://developer.gamavas.fun"},{"anchor":"Gamavas","icon":"gamepad-2","href":"https://gamavas.fun"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"alubasa-labs","hasAudioNarration":false,"actualSubdomain":"alubasa-labs","customDomains":["docs.gamavas.fun"],"gitSource":{"type":"github","owner":"clintjeez","repo":"gamavas","deployBranch":"staging","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":"","_id":"6b0ebda34decdda91520a2a8"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0ee392d97f121a6dd6ec70","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"API reference","count":19},{"language":"default","tag":"Endpoints","count":18},{"language":"default","tag":"Guides","count":17},{"language":"default","tag":"Gamavas Pass","count":9},{"language":"default","tag":"SDKs","count":7},{"language":"default","tag":"Gamavas Edge","count":6},{"language":"default","tag":"Game SDKs","count":6},{"language":"default","tag":"Game","count":5},{"language":"default","tag":"Sign-in","count":5},{"language":"default","tag":"Webhooks","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"pass/selling","slug":"/pass/selling","pageMetadata":{"title":"Selling your game","description":"Set a price, let players buy by card or with Gamavas coins, check who owns your game, and get paid.","icon":"badge-dollar-sign","href":"/pass/selling"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Set a price, let players buy by card or with Gamavas coins, check who owns your game, and get paid.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`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.`}),`\n`,_jsx(Heading,{level:`2`,id:`set-a-price`,children:`Set a price`}),`\n`,_jsxs(_components.p,{children:[`On your app’s `,_jsx(_components.strong,{children:`Store`}),` page in the `,_jsx(_components.a,{href:`https://developer.gamavas.fun`,children:`developer portal`}),`, set a price from `,`$0 (free) to $`,`1,000. A free game counts as owned by everyone who signs in.`]}),`\n`,_jsx(Heading,{level:`2`,id:`gate-your-game-on-ownership`,children:`Gate your game on ownership`}),`\n`,_jsx(_components.p,{children:`Check ownership after sign-in. If the player doesn’t own the game, offer the checkout:`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Web`,numberOfLines:`5`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`if`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` (`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`!`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` pass.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`owns`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`())) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` bought`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` pass.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`purchase`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(); `}),_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:`// call from a click: it's a popup`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` if`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` (`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`!`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`bought) `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`return`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`; `}),_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:`// closed without buying`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`startGame`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`();`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Unity`,numberOfLines:`5`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`if`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` (`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`!await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` GamavasPass.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`OwnsAsync`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`())`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` if`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` (`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`!await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` GamavasPass.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`PurchaseAsync`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`()) `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`return`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`StartGame`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`();`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Godot`,numberOfLines:`6`,language:`gdscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`gdscript`,children:_jsxs(_components.code,{language:`gdscript`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`var`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` owned `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` GamavasPass`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`owns`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`if`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` owned.ok `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`and`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` not`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` owned.value:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` var`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` bought `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` GamavasPass`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`purchase`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` if`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` not`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` (bought.ok `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`and`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` bought.value):`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` return`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`start_game`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`()`})]}),`\n`]})})})]}),`\n`,_jsxs(_components.p,{children:[`In Construct, use `,_jsx(_components.strong,{children:`Check ownership`}),` and `,_jsx(_components.strong,{children:`Purchase`}),`; in GameMaker, `,_jsx(_components.code,{children:`gamavas_owns`}),` and `,_jsx(_components.code,{children:`gamavas_purchase`}),`; in Defold, `,_jsx(_components.code,{children:`gamavas.owns`}),` and `,_jsx(_components.code,{children:`gamavas.purchase`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`purchase()`}),` resolves `,_jsx(_components.code,{children:`true`}),` once the player owns the game, or `,_jsx(_components.code,{children:`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.`]}),`\n`,_jsx(Heading,{level:`2`,id:`how-players-pay`,children:`How players pay`}),`\n`,_jsxs(_components.p,{children:[`The checkout offers `,_jsx(_components.strong,{children:`card`}),`, through Gamavas’s payment provider, and `,_jsx(_components.strong,{children:`Gamavas coins`}),` the player bought. Free coins from rewards can’t buy games.`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-you-earn`,children:`What you earn`}),`\n`,_jsxs(_components.p,{children:[`You get `,_jsx(_components.strong,{children:`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.`]}),`\n`,_jsxs(_components.p,{children:[`Your earnings are on the `,_jsx(_components.strong,{children:`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.`]}),`\n`,_jsx(Heading,{level:`2`,id:`refunds`,children:`Refunds`}),`\n`,_jsxs(_components.p,{children:[`A player can get a refund within `,_jsx(_components.strong,{children:`14 days`}),`, if they’ve played for `,_jsx(_components.strong,{children:`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.`]}),`\n`,_jsxs(_components.p,{children:[`Your server hears about all of this through `,_jsx(_components.a,{href:`/pass/webhooks`,children:`webhooks`}),`: `,_jsx(_components.code,{children:`order.paid`}),`, `,_jsx(_components.code,{children:`order.refunded`}),` and `,_jsx(_components.code,{children:`entitlement.revoked`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`check-ownership-on-your-server`,children:`Check ownership on your server`}),`\n`,_jsx(_components.p,{children:`If your server unlocks paid content, check there too, with a secret key:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`owned`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`free`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`priceCents`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` gamavas.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`entitlement`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(player.id); `}),_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:`// @gamavas/pass-server`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`selling-in-mobile-apps`,children:`Selling in mobile apps`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`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 `,_jsx(_components.code,{children:`purchase()`}),` in a store build. Checking ownership is fine everywhere, so a game bought on the web still unlocks in your app.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`try-it-without-paying`,children:`Try it without paying`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.a,{href:`/pass/test-mode`,children:`test mode`}),`: a free test checkout for you and your testers.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"github-dark"}},"config":{},"pageMetadata":{"title":"Selling your game","description":"Set a price, let players buy by card or with Gamavas coins, check who owns your game, and get paid.","icon":"badge-dollar-sign","href":"/pass/selling"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Set a price","slug":"set-a-price","depth":2,"children":[]},{"title":"Gate your game on ownership","slug":"gate-your-game-on-ownership","depth":2,"children":[]},{"title":"How players pay","slug":"how-players-pay","depth":2,"children":[]},{"title":"What you earn","slug":"what-you-earn","depth":2,"children":[]},{"title":"Refunds","slug":"refunds","depth":2,"children":[]},{"title":"Check ownership on your server","slug":"check-ownership-on-your-server","depth":2,"children":[]},{"title":"Selling in mobile apps","slug":"selling-in-mobile-apps","depth":2,"children":[]},{"title":"Try it without paying","slug":"try-it-without-paying","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"alubasa-labs","siteName":"Gamavas Docs","title":"Selling your game - Gamavas Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-01T15:11:20.086Z","originalFileLocation":"pass/selling.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Set a price, let players buy by card or with Gamavas coins, check who owns your game, and get paid.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Gamavas Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/alubasa-labs/QpSvwgbepQaT1hpp/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/alubasa-labs/QpSvwgbepQaT1hpp/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/alubasa-labs/QpSvwgbepQaT1hpp/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/alubasa-labs/QpSvwgbepQaT1hpp/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/alubasa-labs/QpSvwgbepQaT1hpp/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/alubasa-labs/QpSvwgbepQaT1hpp/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/alubasa-labs/QpSvwgbepQaT1hpp/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/alubasa-labs/QpSvwgbepQaT1hpp/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/alubasa-labs/QpSvwgbepQaT1hpp/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Selling your game - Gamavas Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Set a price, let players buy by card or with Gamavas coins, check who owns your game, and get paid.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Gamavas Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.gamavas.fun/pass/selling\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://alubasa-labs.mintlify.site/_mintlify/api/og/v2?division=Gamavas+Pass\u0026amp;title=Selling+your+game\u0026amp;description=Set+a+price%2C+let+players+buy+by+card+or+with+Gamavas+coins%2C+check+who+owns+your+game%2C+and+get+paid.\u0026amp;theme=4e48aa04066d1e0e5eea8909\u0026amp;signature=07d4a5125aa789477c625a52b3f94655687361ce9ead09b72f4c0ccf93cb9cff\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Selling your game - Gamavas Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Set a price, let players buy by card or with Gamavas coins, check who owns your game, and get paid.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://alubasa-labs.mintlify.site/_mintlify/api/og/v2?division=Gamavas+Pass\u0026amp;title=Selling+your+game\u0026amp;description=Set+a+price%2C+let+players+buy+by+card+or+with+Gamavas+coins%2C+check+who+owns+your+game%2C+and+get+paid.\u0026amp;theme=4e48aa04066d1e0e5eea8909\u0026amp;signature=07d4a5125aa789477c625a52b3f94655687361ce9ead09b72f4c0ccf93cb9cff\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/alubasa-labs/QpSvwgbepQaT1hpp/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Gamavas Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5724FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.gamavas.fun/pass/selling\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/pass/selling.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.gamavas.fun/#organization\",\"name\":\"Gamavas Docs\",\"url\":\"https://docs.gamavas.fun\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/alubasa-labs/h0b6U38_kDipnks9/logo/light.png?fit=max\u0026auto=format\u0026n=h0b6U38_kDipnks9\u0026q=85\u0026s=00d42a5ea7e2dad151ae25487c63c4a2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.gamavas.fun#website\",\"name\":\"Gamavas Docs\",\"url\":\"https://docs.gamavas.fun\",\"publisher\":{\"@id\":\"https://docs.gamavas.fun/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.gamavas.fun/pass/selling#webpage\",\"url\":\"https://docs.gamavas.fun/pass/selling\",\"name\":\"Selling your game\",\"description\":\"Set a price, let players buy by card or with Gamavas coins, check who owns your game, and get paid.\",\"dateModified\":\"2026-12-01T15:11:20.086Z\",\"isPartOf\":{\"@id\":\"https://docs.gamavas.fun#website\"},\"breadcrumb\":{\"@id\":\"https://docs.gamavas.fun/pass/selling#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.gamavas.fun/pass/selling#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Gamavas Pass\",\"item\":\"https://docs.gamavas.fun/pass/how-sign-in-works\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Selling your game\",\"item\":\"https://docs.gamavas.fun/pass/selling\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.gamavas.fun/pass/selling#article\",\"headline\":\"Selling your game\",\"name\":\"Selling your game\",\"description\":\"Set a price, let players buy by card or with Gamavas coins, check who owns your game, and get paid.\",\"url\":\"https://docs.gamavas.fun/pass/selling\",\"mainEntityOfPage\":{\"@id\":\"https://docs.gamavas.fun/pass/selling#webpage\"},\"dateModified\":\"2026-12-01T15:11:20.086Z\",\"publisher\":{\"@id\":\"https://docs.gamavas.fun/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.gamavas.fun#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Gamavas Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Gamavas Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/pass/selling.md","siteName":"Gamavas Docs","nav":{"global":{"anchors":[{"anchor":"Developer portal","icon":"layout-dashboard","href":"https://developer.gamavas.fun"},{"anchor":"Gamavas","icon":"gamepad-2","href":"https://gamavas.fun"}]},"tabs":[{"tab":"Guides","icon":"book-open","groups":[{"group":"Get started","pages":[{"title":"Gamavas for developers","sidebarTitle":"Introduction","icon":"house","href":""},{"title":"Quickstart","icon":"rocket","href":"/quickstart"}]},{"group":"Gamavas Pass","icon":"key-round","pages":[{"title":"How sign-in works","icon":"log-in","href":"/pass/how-sign-in-works"},{"title":"Players","icon":"user-round","href":"/pass/players"},{"title":"Achievements and XP","description":"Define achievements in the portal, unlock them from your game or your server, and give players XP that follows them everywhere.","icon":"trophy","href":"/pass/achievements"},{"title":"Selling your game","icon":"badge-dollar-sign","href":"/pass/selling"},{"title":"Test mode","description":"Try buying your own game, refunds and webhooks without paying, with test purchases only you and your testers can make.","icon":"flask-conical","href":"/pass/test-mode"},{"title":"Your server","icon":"server","href":"/pass/your-server"},{"title":"Webhooks","icon":"webhook","href":"/pass/webhooks"},{"title":"Analytics","icon":"chart-line","href":"/pass/analytics"},{"title":"Branding","icon":"palette","href":"/pass/branding"}]},{"group":"Gamavas Edge","icon":"globe","pages":[{"title":"Gamavas Edge","sidebarTitle":"Overview","icon":"globe","href":"/edge/overview"},{"title":"Deploy from the dashboard","icon":"upload","href":"/edge/deploy-dashboard"},{"title":"Deploy from GitHub","icon":"github","href":"/edge/deploy-github"},{"title":"Deploy from a terminal","icon":"terminal","href":"/edge/deploy-terminal"},{"title":"Previews and rollback","icon":"undo-2","href":"/edge/previews-and-rollback"},{"title":"Plans and limits","icon":"gauge","href":"/edge/plans"}]}]},{"tab":"SDKs","icon":"boxes","pages":[{"title":"SDKs","href":"/sdks/web"}]},{"tab":"API reference","icon":"square-terminal","pages":[{"title":"API reference","href":"/api-reference/introduction"}]},{"tab":"Resources","icon":"life-buoy","pages":[{"title":"Resources","href":"/resources/faq"}]}]},"basePath":"","title":"Selling your game - Gamavas Docs","deploymentId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","buildId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","dynamics":[],"chunks":[]}