CrazyGames have partnered with Xsolla to offer you the possibility to integrate in-game purchases more conveniently. Learn more about how to use Xsolla on the CrazyGames developer pages.
If you would like to use Xsolla via CrazyGames’ custom-generated token, you can retrieve the Xsolla token like this:
crazygames.get_xsolla_user_token(function(self, token)
print(token)
end)
CrazyGames recommend that you retrieve the token every time before using it, since the tokens are usually short-lived, for example only 1 hour. The SDK handles the token refresh.
Did you spot an error or do you have a suggestion? Please let us know on GitHub!
GITHUB