Stablecoin for Games
A free Ren’Py plugin for tips and paid unlocks in USDC and USDT. The player’s wallet pays yours directly. No store, payment processor or JRPG server sits in between.
Four steps, all inside the game
-
01
Pick a network
A payment sheet slides in over the game. The player picks the network their USDC or USDT is on.
-
02
Pay
With a browser wallet like MetaMask or Phantom, a phone wallet QR code, or a manual transfer from an exchange. The player covers the network fee, usually cents on Base, Arbitrum, Polygon, Arc and Solana.
-
03
The game watches the chain
The price gets 4 extra digits for the item and a random number, so 4.99 is sent as 4.993742. The game looks for that exact transfer to your wallet.
-
04
Unlocked
After enough confirmations the receipt is saved. It is re-checked on-chain at each launch, and the unlock works offline.
Running in ten minutes
uvx scfg-renpy install .
npx scfg-renpy install .
pipx run scfg-renpy install .
- Get the pluginUnzip the release into your project. You get
game/scfg/andgame/python-packages/scfg_core/. - Add your wallet and itemsOne
configure()call, and anadd_item()for each thing you sell. - Call
pay()where you sellThen gate the content withowns(). - Test on testnet first
testnet=Trueuses Sepolia, Polygon Amoy and Solana Devnet. Do one full purchase before going live.
init python:
scfg.configure(
wallet="0xYourWallet",
testnet=True)
scfg.add_item(
"chapter2", code=1,
price="4.99", token="USDC",
title="Chapter 2")
label end_of_chapter1:
$ scfg.pay("unlock",
item="chapter2")
if scfg.owns("chapter2"):
jump chapter2
Other ways to get it
-
PyPI
v0.1.3scfg-renpyCopied into your project by uvx or pipx View -
npm
v0.1.3scfg-renpyCopied into your project by npx View -
GitHub Releases
v0.1.3scfg-renpy-0.1.3.zipThe full plugin as a zip, screens and engine Download -
itch.io
repulse-games/stablecoin-for-gamesFree download page View -
Source
mainjrpg-stablecoin-gamesBuild the zip yourself from the repo View
Is it right for your game?
Good fit
- Tips and supporter rewards
- Chapter and bonus unlocks in games sold on itch.io or downloaded directly
- Ren’Py web builds on HTML5 and itch.io
Not a fit
- Steam, which bans games that use cryptocurrency. Google Play and the App Store require their own billing.
- Valuable content. With no server holding a secret, anyone who patches the game code can get past an unlock. The launch check stops fake receipts, not patched code.
Read the docs
Player guide, developer setup, API reference and security notes.