Sell Uncloud through Stripe Checkout, email the Mac download, and say Mac-only (Windows soon) #151
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.46) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 459 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.367
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #151"
general
weight: 0.35
ethanteng
What changes
Checkout
/buyis rewritten invercel.jsontoapi/checkout.js. It creates a Stripe Checkout Session forSTRIPE_PRICE_IDand redirects there with a 303.- Promotion codes are allowed.
- The session is marked
metadata.product = uncloud-home.- If settings are missing or Stripe fails, the buyer sees a plain "Checkout isn't available, nothing was charged" page.
api/stripe-webhook.jsverifies theStripe-Signatureheader (HMAC-SHA256, 5-minute tolerance). I checked it against the Stripe SDK's own header generator.- On
checkout.session.completed, orasync_payment_succeededfor payments that settle later, it emails the buyer both Mac DMG links and a link to/help#set-up, through Mailtrap.- It ignores sessions without the
uncloud-homemark and sessions that aren't paid yet.- If Mailtrap fails it returns 500, so Stripe retries.
/thanksis the noindex page Stripe returns buyers to. It tells them to check their email.GETandPOSTreadprocess.envthemselves, because Vercel passes a FetchEvent as the second argument. The tests inject their own settings throughhandle().Site
/buy. This covers the homepage, the five acquisition pages (regenerated), the FAQ and the hardware page.- The hero, setup steps and platform lists say Mac, with Windows "coming soon".
- Every buy note says the same.
- The FAQ and each comparison page answer "Does Uncloud work on Windows?".
- Structured data lists only
macOS.- The social card's platform line is updated.
- Linux is no longer mentioned.
- It now covers Stripe and the download email.
- The advertising sentence now refers to buy clicks.
- The effective date is November 25, 2026.
robots.txtdisallows/buyand/api/.Docs:
landing/README.md#checkoutlists the env vars and the one-time Stripe setup. Reservers get single-use promotion codes.pricing.md,measurement.mdanddocs/technical.mdare updated.Review fixes
db6b633(Codex, P1): Vercel calls Web handlers ashandler(request, event). Theenvdefault never applied, so/buyalways returned 503 and the webhook 500.9e9d886(Cursor): the Vercel adapter buildsrequest.urlashttp://. Stripe's return URLs now use https for public hosts.787257c(Cursor, minor): the README promo-code advice and the privacy policy's ads sentence.Before merging
1. Set
STRIPE_SECRET_KEYandSTRIPE_PRICE_IDin Vercel. Use test keys on Preview.2. Create the webhook endpoint at
/api/stripe-webhookand setSTRIPE_WEBHOOK_SECRET.3. Run one test-mode purchase on a Preview with
MAILTRAP_INBOX_IDset.Until steps 1 and 2 are done,
/buyshows the "unavailable" page.Tests
node --test "api/.test.js": 58 pass. These include each handler called the way Vercel calls it.node --test "landing/.test.cjs": 32 pass. These cover:- no GitHub link in any header;
- help page and email DMG links match;
- no PC or Linux claims;
- Windows is "coming soon" on every buy note.
787257c: Linux and macOS checks, both Mac app builds, and the iOS app.🤖 Generated with Claude Code
https://claude.ai/code/session_01DchAE4kCQdAr11wCAAVwzV