• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kobotoolbox / kpi / 26101325867
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 19 May 2026 01:50PM UTC
Jobs 10
Files 915
Run time 4min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 May 2026 01:45PM UTC coverage: 82.268% (+0.004%) from 82.264%
26101325867

push

github

web-flow
feat(stripe): automated Stripe manual invoicing setup from Django admin DEV-1913 (#7053)

### 📣 Summary
This PR automates the initial setup for manual invoicing by allowing the
product team to create a Stripe customer and a baseline "community plan"
subscription directly from the `Organization` admin panel.

### 📖 Description
Currently, setting up manual invoicing requires the product team to
manually create customers and subscriptions in the Stripe dashboard,
which is time-consuming and prone to data entry errors.

Solution:
This PR introduces a dedicated action within the Django admin that
allows the product team to initiate the invoicing process with a single
click. By selecting an organization, the system automatically creates a
new Stripe customer and attaches a free "community plan" subscription.
This automation ensures that all relevant metadata including
organization IDs and owner user details are correctly synced between
KoboToolbox and Stripe without manual data entry. This feature is
restricted to organizations that do not already have an active Stripe
subscription.

Changes:
- Added `create_manual_subscription` to handle the creation of Stripe
objects with proper metadata (Org ID, Owner Username, etc.).
- Modified `OrgAdmin` to inject a "Create Stripe Subscription" button
into the organization change form.

9021 of 12125 branches covered (74.4%)

28 of 71 new or added lines in 3 files covered. (39.44%)

29846 of 36279 relevant lines covered (82.27%)

5.77 hits per line

Uncovered Changes

Lines Coverage ∆ File
22
29.03
kobo/apps/stripe/utils/manual_subscription.py
21
72.38
31.54% kobo/apps/organizations/admin/organization.py
Jobs
ID Job ID Ran Files Coverage
1 26101325867.1 19 May 2026 01:50PM UTC 911
52.43
2 26101325867.2 19 May 2026 01:51PM UTC 911
54.05
3 26101325867.3 19 May 2026 01:52PM UTC 913
53.69
4 26101325867.4 19 May 2026 01:52PM UTC 913
55.33
5 26101325867.5 19 May 2026 01:52PM UTC 911
52.69
6 26101325867.6 19 May 2026 01:53PM UTC 913
66.02
7 26101325867.7 19 May 2026 01:54PM UTC 911
59.93
8 26101325867.8 19 May 2026 01:54PM UTC 913
54.07
9 26101325867.9 19 May 2026 01:54PM UTC 913
61.1
10 26101325867.10 19 May 2026 01:55PM UTC 915
68.37
Source Files on build 26101325867
  • Tree
  • List 915
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 6e2474b1 on github
  • Prev Build on release/2.026.13 (#26084606589)
  • Next Build on release/2.026.13 (#26280905494)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc