Once you have successfully implemented the endpoint for retrieving the game session play token from here https://docs.casinowebscripts.com/articles/9647630-generate-game-play-token , then use your Games Launch API URL (which was given to you by the CWS Support) (it is the file beside your REST API URL with restapi replaced by play โ e.g. xyz_restapi10.php โ xyz_play10.php; see Generate Game Play Token) and attach the play_token to it, in order to successfully build the launch game URL.
EG: https://www.************.casino/wwwmisc/API/play_url.php?play_token=bHaGRIig31oiahwoHA51s
You must then embed your full URL (with the play_token) in an iframe as seen in the example from below:<iframe src="https://************.casino/wwwmisc/API/play_url.php?play_token=bHaGRIig31oiahwoHA51s" width="100%" height="100%"></iframe>
IMPORTANT: Make sure to replace https://*************.casino/wwwmisc/API/play_url.php with the Games Launch API URL given to you by the CWS Staff.
If the page answers "You are using an incorrect URL for the Games Launch URL", you are still on the placeholder play_url.php.
Note: The launch URL must use https://. If you embed the game in an iframe, the page that holds the iframe must also be served over https://. Over plain http:// the game opens blank, with no balance shown.
If the game does not open
The page says "You are using an incorrect URL for the Games Launch URL". You are still on the placeholder
play_url.php. Use your own Games Launch API URL.The page says "This trial game launch is closed. Please contact support." The trial period of your trial account has ended. Contact support.
The player lands on your
token_expire_urlorexit_url. The play token has expired, or another browser or device opened it first. Generate a new token for each launch.The game opens without a balance, or reports an account problem. Your
getbalanceendpoint did not answer a valid, signed reply. Check it with the automated test tool first.The page stays blank. Check that the launch URL and the page that holds the iframe both use
https://. If they do, send us the time of the launch and your API username.