Statuses
The eight contribution statuses, how GitHub Sponsors and Open Collective states map to them, and which ones to count.
On this page
Every contribution has one of eight statuses, the same for both providers:
| Status | Meaning | GitHub | Open Collective |
|---|---|---|---|
active | Recurring and current | Recurring, isActive | ACTIVE |
paid | A completed one-time contribution | isOneTimePayment | PAID |
paused | Recurring, paused | — | PAUSED |
cancelled | Ended | Recurring, not active | CANCELLED, EXPIRED |
refunded | Refunded | — | REFUNDED |
disputed | Charged back | — | DISPUTED |
failed | Payment failed or rejected | — | ERROR, REJECTED |
pending | Not settled yet | — | NEW, PENDING, PROCESSING, REQUIRE_CLIENT_CONFIRMATION, IN_REVIEW |
Open Collective statuses come from the order itself, never from membership. A provider value Sponsorkit doesn't
know yet maps to pending.
Provider quirks#
- GitHub reports pending cancellations only through webhooks, which Sponsorkit doesn't use. A GitHub
sponsorship the supporter has cancelled stays
activeuntil it actually ends. - GitHub sponsorships paid through Patreon carry the
via_patreonflag. - One-time contributions are never
active. A GitHub or Open Collective one-time payment ispaid; useoneTime()orstatus === "paid"if past one-time support should count.
Which statuses to count#
active() keeps only active, which is the right default for "is this person supporting me right now?". Some
choices you might make differently:
- Thank past supporters by also counting
paidandcancelled. - Be generous with
pending: a brand-new Open Collective order can bependingfor a short while. - Ignore
refunded,disputedandfailed: no money arrived.
The contribution shape page shows how to combine helpers into your own rule in each language.