---
url: https://docs.sunlicense.com/integrations/ko-fi.md
---
# Ko-fi

Ko-fi **Shop** orders issue one license per item. Ko-fi doesn't send refund events.

## Setup

1. SunLicense: **Integrations → Ko-fi → Connect**. Map shop items by their **item code** (the
   `direct_link_code`, e.g. the `1a2b3c4d5e` in `ko-fi.com/s/1a2b3c4d5e`), or `*`.
2. Ko-fi **More → API → Webhooks**: paste the hook URL. Under **Advanced**, copy the **verification
   token** into the integration.
3. Put the integration's **redeem link** in the shop item's thank-you message. Buyers enter the
   transaction ID from their Ko-fi receipt and their email.

Donations, memberships and commissions are logged and ignored. Requests whose `verification_token`
doesn't match are refused.
