Skip to content

fix(card): ignore the retired Bridge endorsement once a card customer exists - #2591

Merged
MusabShakeel576 merged 1 commit into
masterfrom
claude/vigilant-volta-sq8umw
Sep 27, 2026
Merged

MusabShakeel576 merged 1 commit into
masterfrom
claude/vigilant-volta-sq8umw

Conversation

@MusabShakeel576

@MusabShakeel576 MusabShakeel576 commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This is the companion to Solid-Money/solid-backend#1869, for the "KYC Routing Issue - Didit Instead of Sumsub" ops ticket.

The backend now reports a superseded Didit rejection (a Rain application from a market Wirex has since taken) as a not-started Wirex application, so the KYC step offers "Continue verification" and routes to Sumsub. The affected user is also an approved bridge.xyz customer. buildCardSteps fell back to the Bridge "cards" endorsement for every non-Rain issuer, so an approved Bridge endorsement would:

  • mark the Wirex applicant's KYC step complete
  • remove its button
  • offer "Activate card" before any Sumsub verification

The Bridge endorsement now applies only when /cards/status has no kycStatus, which means a Bridge-only user with no card customer. Once a Rain/Wirex card customer exists, its kycStatus is the answer. That matches the backend's rule that Bridge is "a fallback for Bridge-only users, not an override".

Test plan

  • New buildCardSteps tests: an approved Bridge endorsement no longer completes KYC for a Wirex not_started applicant, and still does for a Bridge-only user. The first test fails without the change.
  • jest hooks/useCardSteps: 36/36 pass.
  • ESLint clean on changed files; tsc reports nothing in hooks/useCardSteps.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PmSmmwX1kxkmMBEP7pVKPG


Generated by Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

… exists

buildCardSteps fell back to the bridge.xyz "cards" endorsement for every
non-Rain issuer, even when /cards/status already reported a kycStatus.
For an old Bridge customer applying for a Wirex card, an approved Bridge
endorsement marked the KYC step complete and offered "Activate card"
before they had verified with Sumsub. The endorsement now only applies
to Bridge-only users, who have no card customer and so no kycStatus.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PmSmmwX1kxkmMBEP7pVKPG
@vercel

vercel Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated
solid-app Ignored Ignored Preview Sep 27, 2026 8:19am UTC
solid-app-staging Ignored Ignored Preview Sep 27, 2026 8:19am UTC

Request Review

@claude

claude Bot commented Sep 27, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.


🤖 Generated with Claude Code

@MusabShakeel576
MusabShakeel576 merged commit ca48cdc into master Sep 27, 2026
7 checks passed
@MusabShakeel576
MusabShakeel576 deleted the claude/vigilant-volta-sq8umw branch September 27, 2026 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants