Vortex Arcade

Checking Arcade access

Quick launch

Wallet and purchases

View Markdown

Shared Vortex Credits and wallet costs

Balance Where to read it Intended use
Shared Vortex Credits wallet().balance or store().balance after awaiting the call Reviewed Arcade and game purchases. The Arcade ledger owns the balance.
Game coins or other gameplay currency gameState.load(), then read its balance Per-game progression such as coins earned from a run. The save API accepts client-reported values.

Use distinct labels in the game UI, for example Vortex Credits and Game Coins. The checked-in wallet gives an account a one-time 1,200-credit welcome grant. Always display the balance returned by the service. The game-facing SDK has no credit-grant operation.

Price and register game items

List items in arcade.game.json under creditProducts. A game can register up to 100 products. Use a unique lowercase slug for each id, a nonblank name of at most 80 characters, and an integer credits price from 1 to 100,000. The optional description is limited to 300 characters. Purchase and analytics records use the product ID, so keep it stable for the same entitlement. A price or catalog change goes through the regular release review.

{
  "creditProducts": [
    { "id": "blue-trail", "name": "Blue Trail", "description": "A blue flight trail", "credits": 250 },
    { "id": "energy-refill", "name": "Energy Refill", "credits": 80, "repeatable": true }
  ]
}

Products default to one-time ownership. repeatable: true allows another paid purchase and increments the cumulative purchased quantity each time. If a repeatable item can be consumed, the game must track fulfillment and consumption separately. Use the store as the source of paid entitlements on startup and after purchases. If a release retires a product, plan how existing buyers will keep access before removing it from the manifest because store() lists the current catalog. Keep products plainly described and show the exact Vortex Credit price before the player chooses Buy.

Complete and reconcile a purchase

  1. On opening the store, call store() and display its current prices, balance, and ownership. A balance check in the UI can disable an unaffordable purchase. The service makes the final decision.
  2. On an explicit player action, generate a UUID for the purchase and keep it with the account and product while the result is unknown. Allow one purchase in flight. The imported player displays its own confirmation with the registry price.
  3. Apply the returned balance and purchased quantities. For a permanent cosmetic, set access from the owned quantity. If a response times out, refresh the store and retry the same purchase only with its original UUID if the player chooses to continue. The same UUID for the same game, account, and product makes a retry safe from a second charge. Use a new UUID for each deliberate new purchase.
const credits = window.VortexCredits;

// Call this through a signed-in shop's Buy button with the UUID for this purchase.
async function purchaseBlueTrail(requestId) {
  const result = await credits.purchase('blue-trail', requestId);
  return {
    balance: result.balance,
    hasBlueTrail: (result.owned['blue-trail'] ?? 0) > 0,
  };
}

// Create once per new purchase. Keep this value if the outcome is uncertain.
const requestId = crypto.randomUUID();

Arcade selects the price, checks the balance and ownership, records the purchase, and debits the shared wallet. Declines can include insufficient credits, already-owned items, an unknown product, or a reused request ID for another product. Some embedded purchase errors expose only a message. Display it and refresh the store instead of relying on a specific HTTP status. Keep the paid entitlement in the store's ownership data. For repeatable rewards with gameplay or competitive value, use an authoritative backend to record fulfillment before granting anything. Avoid treating a successful retry as another unit of inventory.

Offer Arcade credit packs

Credit packs cost real money and credit the player's shared wallet after Arcade confirms payment. The table reflects the repository catalog. Use the prices and quantities shown at checkout for live purchases. The SDK accepts a pack ID and provides no pack-list method. Pack IDs are stable identifiers and may contain numbers that differ from the current grant. Arcade Credits page · Catalog source

Pack ID Credits Catalog price (GBP)
p400 400 £2.00
p1000 1,050 £5.00
p2800 1,920 £8.00
p6000 2,500 £10.00
p14000 3,780 £15.00

Before offering an in-game checkout action, require signedIn and checkoutEnabled from wallet(). Save any pending progress before navigating. On the player's click, call buyCredits(packId, requestId) with a UUID and handle a rejection by showing the message. Arcade opens checkout by navigating the top-level page. The promise can reject if opening is cancelled, fails, or times out, and has no success result. Stripe-side cancellation is handled by Arcade on return. Refresh the wallet and store when the game loads again or the player reopens the shop. Credits may take time to appear while verification is pending. Spending existing credits can remain available when real-money checkout is disabled.

Keyboard shortcuts

Search gamesCtrl / ⌘ + K
Open shortcuts?
Close a panelEsc