Seamless integration
For easier integration, we have prepared for you:
Tool for faster integration (Postman and Insomnia)
For all question you can check here: 20) Seamless interface F.A.Q.
If you don't get the question, you can write to us in the chat
Functions marked with * are mandatory, other functions are optional
Seamless wallet
Seamless wallet allows players to place bets directly to external system without requiring to transfer funds between accounts.
Communication overview
Communication between servers go through our secure HTTPS RESTful service. The service must be implemented by the external system according to specification.
The Game Engine sends GET requests to the remote system service and expects a JSON response with a status code and the players balance after the transaction
Example:
{"status":"200","balance":"300"}
The status is not the same as HTTP status codes and only 200 (HTTP/1.1 - 200 OK) is accepted and allowed as a response to requests.
Request validation
Each request is escorted with a query param key with a value of a sha1 cached query string and a salt key provided by Xapi Platform
Example:
action=balance&remote_id=123&session_id=123- abc&key=38432ff064690c9b03da519d0c685b1045451c9e).
The query param key value must match sha1([SALT KEY]+[QUERY STRING]
Query string example: action=balance&remote_id=123&session_id=123-abc
$data = $_GET; $key = $data['key']; unset($data['key']); $hash = sha1($salt.http_build_query($data)); Then check if $key == $hash….
Integration
Before we start with wallet integration please provide us with two sets (staging and production) of the following:
- An IP list for us to whitelist
- An API endpoint URL where the wallet requests will be made (balance,debit,credit,rollback)
After we whitelist the addresses provided, we will provide you following details:
- APIi Endpoint url for Xapi calls (Create player, Reporting, etc.) - Please ensure that endpoint is not setup behind CloudFlare
- API credentials for our incoming calls (Xapi:Create player,reporting, etc.)
- API credentials for our outgoing calls to your wallet (balance,debit,credit,etc.) (Usualy the same credentials as incoming)
The dev.pantaloo.com domain in this document is not to be confused with the real domain. Please see email with api credentials for real development/production domain name.
External system must provide a secure https url that responds to the following GET requests with a JSON response with a status code and players balance after transaction.
You can use following rest testing form to start with integration:
We recommend you start with the simplest call getGameList() in order to get started.
When you think that integration is ready for testing go to Testing tool and Form
If you have any questions regarding seamless wallet integration please take a look at F.A.Q. before contacting support.
Integration process: | In depth workflow of a integration |
---|---|