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

Kikobeats / tom / 43117561887
85%

Build:
DEFAULT BRANCH: master
Ran 11 Nov 2026 11:09PM UTC
Jobs 1
Files 19
Run time 1min
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

11 Nov 2026 11:09PM UTC coverage: 84.529% (-0.5%) from 85.0%
43117561887

push

github

web-flow
refactor: stop writing customer metadata on checkout (#349)

* fix: read the visitor IP from cf-connecting-ip behind Cloudflare

request-ip checks x-forwarded-for before cf-connecting-ip. Behind
Cloudflare -> Vercel, x-forwarded-for holds the Cloudflare edge, so
payment:session and payment:update stored an edge IP (162.158.x, 172.64-71.x,
104.16-31.x) as the customer ipAddress: 561 of 796 Microlink customers.

Prefer a valid cf-connecting-ip and fall back to request-ip otherwise.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: stop storing the customer IP address in Stripe metadata

Nothing reads metadata.ipAddress, and behind Cloudflare it held the edge,
not the visitor. Keep country only; the IP is still used to look it up
when no country header is present.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor: drop client-ip, the IP only backs the country fallback

With ipAddress no longer stored, req.ipAddress is read only when no
country header is present, which never happens behind Cloudflare.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor: stop writing customer metadata on checkout

Nothing reads the country or ipAddress tom writes to Stripe customers.
Drop get-metadata, req-country and request-ip; the checkout session keeps
only planId, which the webhook reads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: match payment:update assertion count; drop stale metadata claim from README

payment:update planned 5 assertions after the 2 metadata checks were removed.
README still said tom fills IP, country and other customer metadata.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: lock checkout metadata to the plan and leave customer metadata untouched

Dropping planId from the session or writing metadata again in payment:update
stayed green. The session test now asserts metadata is exactly { planId };
the update test asserts a customer's existing metadata surv... (continued)

109 of 122 branches covered (89.34%)

Branch coverage included in aggregate %.

5 of 6 new or added lines in 4 files covered. (83.33%)

645 of 770 relevant lines covered (83.77%)

8.74 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
37.5
0.0% src/interface/route.js
Jobs
ID Job ID Ran Files Coverage
1 43117561887.1 11 Nov 2026 11:09PM UTC 19
84.53
GitHub Action Run
Source Files on build 43117561887
  • Tree
  • List 19
  • Changed 5
  • Source Changed 5
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #43117561887
  • 67792e58 on github
  • Prev Build on master (#42984012988)
  • Next Build on master (#43830306173)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc