Store

The Store plugin (store) sells three things:

  • Cosmetics for play chips. Card backs and table felts (or any category you add), bought with play chips and equipped by the player. Themes draw them from each item’s style (the default items carry two colours). Other plugins can give items too: the Season Pass’s card-back rewards land in the store.
  • Chip packs, a one-time welcome pack and VIP tiers for real money. Paid through your payment providers. They appear only while an active payment system’s provider supports purchases; otherwise players see the cosmetics only.
  • Play-responsibly tools for purchases. A monthly spending limit, a break from purchases, a session reminder and the purchase history.

Subscriptions (a monthly "Plus" membership) and free chips for watching an ad are not offered: the platform has no recurring billing and no ad network.

The plugin source is in plugins/store (plugin API 1.4). Its README documents the routes, events, hooks and storage for developers.

Enabling the Plugin

It’s sold separately as store-<version>.tgz; upload it under Extensions › Plugins with Upload plugin. Capabilities:

CapabilityWhy
storageThe catalogue choices, each player’s items, orders, limits and VIP points
wallet:credit-virtualCredits the chips of a paid pack
wallet:debit-virtualCosmetics bought with chips; takes chips back after a refund
realtimeLive updates of items, orders, VIP and limits
schedulerThe reconcile job (every minute)
users:readLooking players up by username in the admin page
cashier:purchaseSelling packs for real money through your payment providers (high trust)

Manifest daily cap: 2,000,000,000 play chips. Chips delivered for a paid order never count against it, so a busy day cannot stop a paid pack from arriving. A payment the provider confirms after the checkout expired is delivered when it matches the order (within 72 hours by default); anything unusual (another amount, a refunded payment) shows as Needs review in Money › Transactions, where you deliver it or close the review after refunding the player.

Selling chip packs

Packs are sold through the payment systems in Money › Payment Providers. A payment system can sell packs when its provider supports purchases (it implements createPurchase) and it is active for deposits. The admin page’s Payments card says whether packs are on sale and through which methods. The first-party Stripe plugin is such a provider (cards, Apple Pay and Google Pay on Stripe’s hosted checkout): once it is active and set up, the packs, the welcome pack and VIP appear, paid through Card, Apple Pay, Google Pay. Without a provider that supports purchases, they stay hidden and nothing about them shows to players.

How an order goes:

  1. The player picks a pack. The store checks their break and spending limit, and the engine checks the account (blocked, frozen, self-excluded or on a core cool-off players can’t buy).
  2. The engine records a Purchase in the ledger (Money › Transactions, type Purchase): the price, the payment method, and no balance change. The player is sent to the provider to pay.
  3. When the provider confirms the payment, the chips are credited (a Bonus row described plugin:store:purchase:<order id>). Nothing is credited before that, and a retried confirmation never credits twice.
  4. If the provider refunds the payment or reports a chargeback, the Purchase is marked reversed and the store takes back the chips the player still has (never below zero), the welcome pack’s card back and the VIP points. What could not be taken back is shown on the order as a shortfall.

Orders on the admin page (Growth › Store) lists recent orders with their ledger ids. Mark refunded is for a payment you refunded at the provider yourself (or a chargeback you recorded): it does the same as step 4. Re-check reads an open order’s payment again and delivers it if it is confirmed.

An order that is not paid within 24 hours stops counting against the player’s limit and is marked failed; if the payment still arrives, it is delivered.

Play responsibly

Players set these in their profile (or on the store page of the default theme). The store checks them on the server for every order.

ToolBehaviour
Monthly spending limit$20, $50, $100 or $250, or none. Counts purchases of the last 30 days, including open orders. Lowering applies at once; raising or removing waits 24 hours.
Take a break from purchases24 hours, 7 days or 30 days. No purchases until it ends; it can’t be ended early. Play goes on.
Session reminderOff, 30, 60 or 90 minutes (60 by default): a "Time check" once the player has been on the site that long.
Purchase historyEvery purchase with its date and price, and the total.

The account’s own protection tools still apply: a self-exclusion or a cool-off from Profile → Take a break also stops purchases. The personal deposit limit covers deposits only; the store’s spending limit covers purchases.

Settings

SettingDefaultDescription
EnabledonOff hides the store; players keep their items.
Item categoriescard-back, felt
Cosmetics4 card backs, 4 feltsJSON list. Price 0 = free for everyone (the category’s default). Edit on the admin page or here.
Item grants from other pluginsplugin:season-pass:item-grantedTakes effect after the plugin is deactivated and activated again.
Item id mapSeason Pass tiers 5, 10, 15 → Navy lattice, Pine stripe, Ivory weaveLets the Season Pass pay its fallback for an item the player already bought.
Sell chip packsonStill only with a payment method that supports purchases.
Price currencyUSDYour provider must accept it.
Chip packs$1.99 to $99.99, six packsJSON list with "Most popular" and "Best value" badges.
Welcome pack$4.99: 5,000,000 chips and the Navy lattice back, 72 hoursOnce per player, from the first time they see it.
VIP programme / points / tierson, 10 points per $1, Bronze to Diamond (1x to 3x)Higher tiers multiply the chips of every pack.
Spending limit choices, raise delay20, 50, 100, 250; 24 hours
Purchase break lengths1, 7, 30 days
Session reminder choices, defaultoff, 30, 60, 90; 60
Open order lifetime24 hours
Show in the main navigationoffLists the store page in the default theme.

plugins/store/presets/social-casino.json holds these defaults as one settings object.

Season Pass

The Season Pass’s premium track pays a card back every fifth tier. The store grants the matching item (the item id map), and tells the Season Pass which items each player owns, so a card back the player already bought pays the Season Pass’s fallback chips instead.

Try the live demo Pricing

Have questions about Poker Engine? We reply fast.