$28 Stripe charge processed with no subscription + repeated auth/checkout failures (Email required + UNAUTHORIZED)
Describe the bug The subscription checkout flow is broken. Users can be charged without the subscription activating, and auth tokens are not properly passed during the Stripe handoff.
Steps to Reproduce
- Log in to dashboard at tinyhumans.ai (as user).
- Go to Plans → attempt to subscribe to Basic plan.
- Receive error: "Email is required for Stripe checkout" (even though logged in with verified email).
- Try in incognito/private window → proceed to card entry.
- After submitting payment details, the backend API returns:
{"success":false,"error":"No token provided","errorCode":"UNAUTHORIZED"} - Despite the errors, $28 was charged to my card (June 19, 2026 ~11:50 AM MDT).
- No subscription appears in the dashboard.
Expected behavior
- Proper pre-filling of email and auth token during Stripe Checkout.
- Successful subscription activation on payment.
- Clear error handling without silent charges.
Screenshots
- Attached: Dashboard error popup + API JSON response.
Additional Context
- Browser: Brave
- Multiple attempts (normal + incognito) all failed the same way.
- Contacted [email protected] and [email protected] with a return of invalid email.
- Card issuer unable to reverse the charge immediately.
This is a serious issue — money taken without delivering the service. If it can't be fixed immediately, please refund the $28 and consider adding stronger safeguards (e.g., token validation before charging).
Impact Other users may experience the same silent failed charges. Warning others here in case it affects more people.
Thanks for looking into this quickly!
Status — code-fixed in main, ops follow-up pending
A read-only audit confirms the two code paths described here:
- "Email is required for Stripe checkout" on a logged-in account whose
User.emailwas empty. {"success":false,"error":"No token provided","errorCode":"UNAUTHORIZED"}returned to the browser after Stripe had already charged the card — Stripe redirected the browser back to a JWT-gated route with no bearer token.
Both are fixed by backend PR #1005 — fix(stripe): unauthenticated checkout callback and email-less checkout (#3897) — merged on main at a5951ab9 on 2026-06-22.
Concretely the fix:
- Dropped the email pre-flight in
purchasePlanso logged-in email-less users can subscribe; Stripe Checkout collects the email and the team-owner email is synced back viagetOrCreateCustomer. - Made the post-checkout return endpoint (
GET /payments/stripe/checkout/return) public and idempotent: a browser redirect carries no bearer token, so gating it producedUNAUTHORIZEDafter the charge had succeeded. Subscription activation is now webhook-driven, and the return route hands the browser back to the desktop app via theopenhuman://payment/successdeep link.
What still needs to happen before this can be closed
- [ ] Confirm #1005 is actually live in production. Audit signals suggested production may have been running an older build at the time the report was filed; please verify the deployed image / build SHA includes
a5951ab9. - [ ] Refund the $28 to the reporter. Card issuer wouldn't reverse it; needs to be done Stripe-side by billing ops. The reporter's email is on the support thread (contacted [email protected] / [email protected] per the OP). With that email it's a one-charge lookup in Stripe — the charge was around 2026-06-19 ~11:50 AM MDT.
Closing this should wait on those two ops items; the code side is done.
Note: an adjacent ticket (#3899, "Early Bird offer consumed by failed payment") was filed against the same Stripe checkout flow but is a different bug — a duplicate-subscription + silent-promo-fallback issue affecting repeat payers. That one is being addressed in backend PR #1014. Mentioned here only so the two don't get conflated.
Thanks for the quick fix and detailed update on PR #1005! The described issues match exactly what I experienced. Refund for the $28 charge (June 19 ~11:50 AM MDT) stall hasn't happened on my end. Can billing ops handle that Stripe-side? Happy to provide any non-sensitive details needed privately.Appreciate the team’s work on this!
Money was refunded and subscription restored. Thanks!