claude-code - 💡(How to fix) Fix [BUG] Plan upgrade payment fails — PaymentIntent voided immediately with `void_invoice` before confirm can complete [9 comments, 9 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#55982Fetched 2026-05-05 06:01:14
View on GitHub
Comments
9
Participants
9
Timeline
21
Reactions
1
Timeline (top)
commented ×9subscribed ×5mentioned ×4labeled ×2

Error Message

actionable error — just a generic failure message. same error, confirming this is NOT a card or bank issue.

Error Messages/Logs

As documented in #55982, the underlying Stripe error is: "error": { #55982 — Same bug, documented Stripe error with full PaymentIntent log

Root Cause

Root Cause (from #55982)

Fix Action

Fix / Workaround

  1. Log into claude.ai on an active Pro ($20/month) plan
  2. Navigate to Settings → Billing
  3. Initiate upgrade to Max ($100/month) plan
  4. Enter card details and proceed through confirmation
  5. Observe failure — payment never goes through

Code Example

Payment failed. Please try again later. If the problem persists,
contact support at https://support.anthropic.com/
---

## Root Cause (from #55982)

As documented in #55982, the underlying Stripe error is:


{
  "error": {
    "code": "payment_intent_unexpected_state",
    "type": "invalid_request_error",
    "message": "This PaymentIntent's mandate_data could not be updated 
    because it has a status of canceled.",
    "payment_intent": {
      "status": "canceled",
      "cancellation_reason": "void_invoice"
    }
  }
}

Related Issues
#55982Same bug, documented Stripe error with full PaymentIntent log
#50710Subscription stuck in broken state after failed payment
#45361Card approved by bank (3DS passed) but Stripe declines
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

When attempting to upgrade from the Pro ($20/month) plan to the Max ($100/month) plan on claude.ai, the payment confirmation step fails immediately with no actionable error — just a generic failure message.

Multiple Visa cards from two different banks were attempted. All fail with the same error, confirming this is NOT a card or bank issue.

<img width="720" height="1600" alt="Image" src="https://github.com/user-attachments/assets/ff3655ea-d786-416a-b956-9c9585d7842c" />

What Should Happen?

Upgrade from Pro → Max completes successfully. PaymentIntent remains in a confirmable state until the user finishes checkout.

Error Messages/Logs

Payment failed. Please try again later. If the problem persists,
contact support at https://support.anthropic.com/
---

## Root Cause (from #55982)

As documented in #55982, the underlying Stripe error is:


{
  "error": {
    "code": "payment_intent_unexpected_state",
    "type": "invalid_request_error",
    "message": "This PaymentIntent's mandate_data could not be updated 
    because it has a status of canceled.",
    "payment_intent": {
      "status": "canceled",
      "cancellation_reason": "void_invoice"
    }
  }
}

Related Issues
#55982 — Same bug, documented Stripe error with full PaymentIntent log
#50710 — Subscription stuck in broken state after failed payment
#45361 — Card approved by bank (3DS passed) but Stripe declines

Steps to Reproduce

  1. Log into claude.ai on an active Pro ($20/month) plan
  2. Navigate to Settings → Billing
  3. Initiate upgrade to Max ($100/month) plan
  4. Enter card details and proceed through confirmation
  5. Observe failure — payment never goes through

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.141

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Terminal.app (macOS)

Additional Information

This issue is still actively occurring as of May 2026. The $20/month Pro charge succeeds on the same cards, confirming the cards themselves are valid. The failure is specific to the upgrade flow. Reddit thread with same reports: https://www.reddit.com/r/ClaudeAI/comments/1sznoh9/payment_failure_resolution/ https://www.reddit.com/r/ClaudeAI/comments/1s1jrxk/upgrading_max_plan_but_not_recognized_for_session/

extent analysis

TL;DR

The most likely fix is to investigate and resolve the server-side issue causing the PaymentIntent to be voided prematurely due to void_invoice, allowing the payment confirmation step to complete successfully.

Guidance

  • Review server-side logs and webhooks to identify the process or condition causing the PaymentIntent to be canceled with cancellation_reason: void_invoice within 42 seconds of creation.
  • Verify that the payment confirmation flow is properly handling the PaymentIntent status and not attempting to update the mandate data after the PaymentIntent has been canceled.
  • Consider implementing a retry mechanism or a temporary workaround to handle cases where the PaymentIntent is canceled prematurely, such as resending the payment confirmation request after a short delay.
  • Investigate related issues (#50710, #45890, #45361) to determine if there are any common factors or patterns contributing to the problem.

Example

No code example is provided as the issue appears to be related to server-side configuration or webhook processing, which cannot be accurately represented in a code snippet without further information.

Notes

The root cause of the issue is likely a server-side configuration or webhook processing issue, rather than a client-side problem. Resolving this issue will require investigation and changes to the server-side infrastructure or payment processing workflow.

Recommendation

Apply a workaround, such as implementing a retry mechanism or delaying the payment confirmation request, to mitigate the issue until the underlying server-side cause can be identified and resolved. This will help to reduce the impact on users attempting to upgrade their plans.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING