Payhub payment integration

Payhub is essential part of our payment system for charging user gold. This is how Payhub works Payhub

Please contact our GameMaster for account and app information then implement using the following steps

Steps

  • Login https://appotapay.com/login
  • Go to https://appotapay.com/Product change go to edit
  • Use the APIKey, secretkey from Payhub
  • Follow instruction from here to setup your API to support payhub and understand how it work https://docs.gamota.com/pay/Docs/payhub.html
  • Follow the instruction to setup your API to Get your server list, get role ID, check roleID, buy gold.
  • Setup itemID and URL on AppotaPay pages ![Config](config.png =600x400)
  • Set those URL on Product pages and test your API http://payhub.vn/development/game/your_games step by step

Sample source

Sample source in PHP can be downloaded at https://docs.gamota.com/payhub/payhub_source.tar.gz

Support tools

  • curl for testing transaction (please replace API_KEY and TRANSACTION_ID_TO_CHECK with yours to check)
curl -X POST "http://api.appotapay.com/v1/services/check_transaction?api_key=YOUR_API_KEY&lang=en" -d "transaction_id=TRANSACTION_ID_TO_CHECK"