Ren’Py plugin · open source

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.

  • 6 networks
  • 0% platform fee
  • MIT license
  • Ren’Py 8.2+
Pays on Ethereum Arbitrum Polygon Base Arc Solana In USDC USDT
How a payment works

Four steps, all inside the game

  1. 01

    Pick a network

    A payment sheet slides in over the game. The player picks the network their USDC or USDT is on.

  2. 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.

  3. 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.

  4. 04

    Unlocked

    After enough confirmations the receipt is saved. It is re-checked on-chain at each launch, and the unlock works offline.

Installation

Running in ten minutes

uvx scfg-renpy install .
  1. Get the pluginUnzip the release into your project. You get game/scfg/ and game/python-packages/scfg_core/.
  2. Add your wallet and itemsOne configure() call, and an add_item() for each thing you sell.
  3. Call pay() where you sellThen gate the content with owns().
  4. Test on testnet firsttestnet=True uses Sepolia, Polygon Amoy and Solana Devnet. Do one full purchase before going live.
Full install guide
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
Get it from

Other ways to get it

  • PyPI

    v0.1.3
    scfg-renpy Copied into your project by uvx or pipx View
  • npm

    v0.1.3
    scfg-renpy Copied into your project by npx View
  • GitHub Releases

    v0.1.3
    scfg-renpy-0.1.3.zip The full plugin as a zip, screens and engine Download
  • itch.io

    repulse-games/stablecoin-for-games Free download page View
  • Source

    main
    jrpg-stablecoin-games Build the zip yourself from the repo View
Straight answers

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.
Security and limitations

Read the docs

Player guide, developer setup, API reference and security notes.