A simple integration between Colyseus and Xsolla for handling in-game payments.
View Live demo
- Token generation: Payment token generation for Xsolla Virtual Items and Subscriptions
- Pay Station UI: The generated token is used to open the Xsolla Pay Station UI
- Webhooks: The Colyseus server responds to Xsolla webhooks for user validation and payment confirmation
Note
See full documentation → http://docs.colyseus.io/payments/xsolla
- Install the dependencies
npm install
- Start the local server
npm start
- From a new terminal window, expose the local server to the internet via
cloudflared
tunnel, and copy the URL. - From your Xsolla Dashboard, go to your project's Payments → Webhooks settings page and paste the tunnel URL.
- Copy the updated Secret key and set it as the value for
XSOLLA_WEBHOOK_SECRET_KEY
in.env.development
.
MIT