Sample backend code snippets to demonstrate how to integrate Bolt's SDK into your game server.
This project showcases an example backend with the following flows implemented
- Payment Links: Creating links that take user to checkout
- Validate Order: Validating a transaction was successful for a specific user
- Transaction Webhooks: Handling webhooks on transaction success as users make purchases in your game
Bolt uses API keys to authenticate your requests. You can manage your API keys in the Bold Dashboard.
When you are ready to implement Bolt into your gaming SDK make sure to follow along using the Installation Guide.
Installation Guide: Our Quickstart guide will walk you through the full gaming setup.
This project includes a Tilt configuration for easy local development. You have two options to start the development environment:
Setup:
cp client/.env.local.sample client/.env.local
cp client/.env.staging.sample client/.env.staging
cp server/.env.local.sample server/.env.local
cp server/.env.staging.sample server/.env.staging
Using script (uses Tilt):
./start-dev.shThe start-dev.sh script provides additional features:
- Automatic ngrok hostname configuration based on your
BL_DOMAINenvironment variable - Support for custom ngrok hostnames (requires reserved domain in ngrok dashboard)
- Proper environment variable setup for the Tilt environment
Both options will start the backend server, frontend client, and ngrok tunnel for external access.
Merchant Dashboard: Make sure you have fully onboarded onto our Bolt Gaming sandbox. You can sign up or sign in depending if you have an existing merchant account or not.
Language Support: Looking for a different language or a particular server SDK? You can easily clone, copy, or paste URL this lightweight repo into your favorite copilot tool and it should do a good job replicating the interfaces for you.
Bolt Support: If you have questions or need additional support please reach out to us in our discord server and we would be happy to assist!