Ko-Fi is a simple donation platform that allows people to send tip without too much hassle.
While they do not have full blown API, they do have webhook that we can redirect to our own endpoints.
Here's an example of the data that will be sent for a single donation:
data = {
"verification_token": "8c2a3835-4544-4f27-a53a-adfd1fcc5664",
"message_id": "b54fa6ec-07c9-44aa-be0e-b0f4095d9145",
"timestamp": "2023-07-29T16:27:32Z",
"type": "Donation",
"is_public": true,
"from_name": "Jo Example",
"message": "Good luck with the integration!",
"amount": "3.00",
"url": "https://ko-fi.com/Home/CoffeeShop?txid=00000000-1111-2222-3333-444444444444",
"email": "
[email protected]",
"currency": "USD",
"is_subscription_payment": false,
"is_first_subscription_payment": false,
"kofi_transaction_id": "00000000-1111-2222-3333-444444444444",
"shop_items": null,
"tier_name": null,
"shipping": null
}
Would be nice if NodeBB have plugin that can act as endpoint so we can hook right here on our Ko-Fi profile
[image: 1690648360656-55224b71-5ae6-499d-97f9-7474ab9cd3f1-image.png]
And have it lists our donators on a page in mysite.com/donators sorted by date descending.