========================================
CALLBACK ENDPOINT TEST (LOCALHOST)
========================================
Test Configuration:
- User: sadok12
- Hall ID: 3200056
- Callback URL: http://localhost/api/callback.php
Testing getBalance command...
URL: http://localhost/api/callback.php
Request: {"cmd":"getBalance","hall":"3200056","key":"sr2nxruX7kFCa7n0G5ktOSfFs","login":"sadok12"}
Response (HTTP 404):
404 Not Found
404
Not Found
The server cannot find the requested page:
❌ 404 Not Found
The callback endpoint doesn't exist at http://localhost/api/callback.php
Make sure Apache DocumentRoot is set to C:/xampp/htdocs
Testing with wrong hall key (should fail)...
Response (HTTP 404):
404 Not Found
404
Not Found
The server cannot find the requested page:
========================================
NEXT STEPS
========================================
If callback works locally but TBS2 returns 'hall_balance_less_100':
1. Check Hall balance in TBS2 Admin Panel:
- Go to: https://tbs2api.dark-a.com/admin/
- Find Hall ID: 3200056
- Ensure balance >= 100 IDR
2. Verify Callback URL in TBS2 Admin:
- Current ngrok URL: https://fumed-querulously-leslee.ngrok-free.dev
- Callback should be: https://fumed-querulously-leslee.ngrok-free.dev/api/callback.php
3. If using Demo Mode (GAME_DEMO_MODE=1):
- Hall should have DEMO balance configured
- Check 'Demo Balance' field in Hall settings
4. Restart ngrok if needed:
- Stop current ngrok
- Run: ngrok http 80
- Update new URL in TBS2 admin
========================================