Linux 软件免费装
Banner图

GamerHub for WooCommerce

开发者 gamerhubstore01
更新时间 2026年8月1日 20:30
PHP版本: 8.0 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce vouchers digital goods fulfillment game topup

下载

1.1.0 1.0.0 1.2.0

详情介绍:

Connects a WooCommerce store to the GamerHub merchant API and turns it into a fully automated game top-up / voucher shop. This plugin is an official client for the GamerHub merchant platform. A GamerHub merchant account is required.

安装:

  1. Install and activate the plugin. WooCommerce must already be active.
  2. In the WordPress menu on the left, click GamerHub. Paste your API Key, API Secret and Webhook Secret from portal.gamerhubstore.shop. The Webhook Secret must be exactly the same as the one in your GamerHub account - if it is not, GamerHub still delivers and still charges you, but your shop never marks the order Complete. Set your Default profit % - leave it at 0 and you sell at cost price and earn nothing. Press Save settings.
  3. Press Test connection. If it fails, the message shows this server's address. Open the API Key page in your GamerHub account, add that address to the allowed list, then test again. When it succeeds it also tells you which currency GamerHub charges you in - you need that for the next step.
  4. Still on the GamerHub page, check Currency handling. If your shop sells in a different currency from the one GamerHub charges you in, nothing will be imported until you choose Convert. See the currency question below.
  5. Press Get the game list, then press Add to my shop on each game you want to sell.
  6. Put some money in your GamerHub wallet, then buy one cheap item on your own shop to check the code or top-up really arrives.

升级注意事项:

1.2.0 Sell in a currency other than your GamerHub account currency, see cost and retail side by side, and set a profit per game or per product. Includes a fix for a rounding bug that could overcharge. Nothing changes if your shop and GamerHub already use the same currency. 1.1.0 Inline per-product/per-denomination markup, more auto-sync intervals, closed-loop stock, PPOM / add-on compatibility, and theme-matching fields. No action required after updating. 1.0.0 Initial release.

常见问题:

My shop and my GamerHub account use different currencies. What happens?

GamerHub charges you in one currency (often USD). Your shop sells in another. A cost of 2.50 USD is not a price of 2.50 in your currency, so the plugin will not guess - by default it stops and imports nothing. That is deliberate: it protects you. On the GamerHub page, under Currency handling, pick one of three:

  • Convert - what almost every shop wants. GamerHub's cost is multiplied by an exchange rate, then your profit % is added. The rate comes from your GamerHub account and stays up to date on its own, or you can type your own. If the rate is missing or more than a day old, the plugin stops writing prices until it has a fresh one, so you are never priced from a stale rate.
  • Pause - the default. Nothing is imported and no price changes while the two currencies are different.
  • No conversion - the number is copied across with no maths at all, so a cost of 2.50 USD becomes a price of 2.50 in your currency. Only safe if you type every price by hand and turn "Keep price and stock up to date" off. In this mode the below-cost protection cannot work, because the two numbers are not in the same currency.
There is also a Rate buffer (a small % added on top of the rate, 2% is a sensible start). Your prices stay as they are until the next sync, but exchange rates move daily - the buffer covers that drift so it does not come out of your profit.

Can I change my WooCommerce currency after adding games?

Not safely. WooCommerce stores a price as a plain number and puts your currency label on it. If you switch currency, every imported price keeps its old number and only the label changes - so 11.75 in the old currency becomes 11.75 in the new one, and most of your shop is suddenly priced wrong. The plugin shows a red warning if it detects this. Fix it by adding your games again before you take any orders.

Does it need a GamerHub account?

Yes. This plugin is a client for the GamerHub merchant platform; you need a merchant account, API credentials, and enough wallet balance (orders draw the wholesale cost).

What does the customer have to fill in?

Only the game fields the product requires (e.g. Player ID, Server) - these come from GamerHub automatically. Vouchers require nothing; the buyer just pays and receives a code.

Can I set my own profit or prices?

Yes. Set a Default profit % on the GamerHub page. Every game in the list then has its own Your profit box right in the table — you can fill it in even before you add the game to your shop, and it is applied the moment you do. Press Prices on a game's row to see each top-up amount with what you pay and what the buyer pays side by side, and to give one single amount its own profit. Note the two profit types: % on top of cost multiplies, and + CUR on top of cost adds that many units of your currency on top of the cost - it does not set the price to that amount. A price is never allowed to fall below what GamerHub charges you, as long as your shop currency matches your GamerHub currency or you use Convert.

How often do prices and stock refresh?

Turn on the interval on the GamerHub page - every 1, 3, 6, 12 or 24 hours. Each time it runs it rewrites the prices of the games already in your shop using your profit %, and also puts the GamerHub name back and puts the product back on sale - so a price or a name you typed by hand on one of those products will be replaced. To protect one game from this, untick Keep updated on its row. If a product goes inactive or out of stock upstream it is automatically marked out of stock so it can't be sold while it can't be fulfilled, and it restocks itself on the next successful sync.

I use PPOM or another product add-on for the Player ID fields. Does it work?

Yes. On a product that uses an add-on, tick "Another plugin already asks for the Player ID" in its GamerHub box to turn ours off and let your add-on render the Player ID / Server. When an order is paid the plugin rebuilds the fulfilment data from the order automatically - matching each GamerHub field by your saved mapping, its label, or a synonym. If it can't be certain which field is which, it blocks the order instead of guessing, so a top-up is never sent to the wrong account. Note that with this on, the plugin no longer checks that the buyer filled the fields in - so place one test order before you go live. Pressing Prices on a game's row shows exactly which fields that game needs, and for dropdowns (such as a Genshin server) the exact values to use. You can also map fields explicitly, per product or per variation.

Will the player fields match my theme?

Yes. The built-in fields use standard WooCommerce form markup and inherit your theme's checkout styling, so they look like the rest of your store.

How are orders fulfilled?

When an order is paid, each unit is submitted to GamerHub over a signed request. The order stays in "processing" until GamerHub's signed webhook confirms delivery, then it completes; failures are held for your review (never auto-refunded).

Is it compatible with High-Performance Order Storage (HPOS)?

Yes.

更新日志:

1.2.0 1.1.0 1.0.0