Skip to content

Commit 72ee021

Browse files
authored
Added instructions for game switching from WHMCS
1 parent 6dbf0c4 commit 72ee021

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docs/billing-api/tcadmin2-advanced-module-for-whmcs.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,12 @@ $billing_api_values["game_id_switch_1"]=10;
198198
$billing_api_values["game_id_switch_2"]=20;
199199
$billing_api_values["game_id_switch_3"]=30;
200200
```
201+
### Game Switching from WHMCS
202+
203+
Instead of sending the values explained above, you can switch the game directly from WHMCS by sending a different value for game_id from the WHMCS upgrade/downgrade function.
204+
To do this, go to the product's configuration. In the Upgrade tab select the allowed games. When the user upgrades his package the game server will be reinstalled with the new game.
205+
206+
Optionally, you can send game_delete_on_switch=1 to delete the game server and create a new one. This way it will go through the process of finding a different server according to your billing API configuration.
201207

202208
### Custom Config File
203209

0 commit comments

Comments
 (0)