[BUG] Failed payment still upgrades account to Pro plan via Claude Code /login
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When a Pro plan subscription payment fails (e.g. card declined for international transactions), the account still gets upgraded to Pro plan after running /login in Claude Code — without any successful payment being charged.
What Should Happen?
Pro plan should only activate after a successful payment confirmation. A failed or pending payment should never result in immediate plan upgrade or access to Pro features.
Error Messages/Logs
Claude.ai displays: "Unable to confirm payment, please contact support"
No error is shown in Claude Code after /login — authorization succeeds, and the Pro plan becomes active.
Steps to Reproduce
- Log in to claude.ai and click "Upgrade to Pro"
- Enter card details and attempt payment
- Payment fails (card blocked for international transactions)
- Claude.ai shows a payment failure message
- Open a terminal and run Claude (Claude Code)
- Run /login — browser opens for OAuth authorization
- Complete the authorization flow in browser
- Return to Claude Code — account now shows as Pro despite no successful payment
Claude Model
Sonnet (default)
Is this a regression?
No, this never worked
Last Working Version
NA
Claude Code Version
2.1.169
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
This appears to be a race condition between the payment confirmation system and the OAuth/session upgrade flow. When payment fails on claude.ai but the subscription state is temporarily set to "pending", the /login command in Claude Code seems to read the pending state and activate Pro access without waiting for payment confirmation.
Attaching screenshots of the payment failure screen and the subsequent Pro plan activation.
<img width="1512" height="982" alt="Image" src="https://github.com/user-attachments/assets/cc397d10-b077-48cb-884f-fe906fab8789" />
<img width="1512" height="982" alt="Image" src="https://github.com/user-attachments/assets/cdbbad60-64a2-430e-8704-9323f8211fea" />
<img width="1512" height="982" alt="Image" src="https://github.com/user-attachments/assets/be920e85-8cc5-4df1-9aec-d4609b26429e" />
<img width="1512" height="982" alt="Image" src="https://github.com/user-attachments/assets/4d560f90-28fb-499c-bca3-b15e385c0a97" />
[Attach IMG_001, IMG_002, IMG_003, IMG_004 here]