itch.io
itch.io doesn't send purchase webhooks, so buyers come to you: they paste their download link on your redeem page, SunLicense checks it with itch.io's API, and shows their key. Asking again returns the same key.
Setup
- itch.io Settings → API keys → Generate new API key.
- SunLicense: Integrations → itch.io → Connect. Paste the API key and your game ID (from the game's edit page URL, or
GET https://api.itch.io/profile/games). Map*to the policy buyers should get. - Link the integration's redeem page from your game page, the download notes, or a README inside the download.
What buyers do
They paste the link from their purchase email or itch.io library (https://you.itch.io/game/download/<key>; the key alone works too) and the email they want the license under.
SunLicense calls GET /games/<game id>/download_keys?download_key=<key> and only accepts keys for your game. One license per download key.
