Skip to content

Sponsors Plugin Setup

David Sterry edited this page Dec 27, 2021 · 5 revisions

Ecko includes a plugin that lets people buy a Sponsor badge that appears next to their name on toots and on their profile as well.

Currently supports the following payment providers:

  • Stripe

Stripe

To configure Stripe add the payment API details to your .env.production by setting:

STRIPE_API_KEY=<production api private key from stripe>
STRIPE_CALLBACK_URL=https://yoursite.example.com           (no trailing slash)

Managing sponsorship levels

Sponsorship levels are called payment packages and are created with a tootctl command. (todo: howto run tootctl in various environments)

These will show up as tiles that are shown on the Donate page.

Add new package

tootctl donations create_package <title> <amount> <description>

Example:

tootctl donations create_package "Diamond" 1000 "Sponsor a community member to attend a conference."

Remove package

tootctl donations remove_package <title>

<title> here is case-sensitive.