Skip to content

fix(checkout): malformed-402 re-challenge must run pre_validate -> v2.5.8 - #90

Merged
vvillait88 merged 1 commit into
mainfrom
fix/malformed-402-prevalidate
Jul 17, 2026
Merged

fix(checkout): malformed-402 re-challenge must run pre_validate -> v2.5.8#90
vvillait88 merged 1 commit into
mainfrom
fix/malformed-402-prevalidate

Conversation

@vvillait88

Copy link
Copy Markdown
Contributor

Parity hotfix for 2.5.7 (mirrors node-commerce 2.7.1). Malformed-credential 402 re-challenge skipped pre_validate, 500ing for dynamic-pricing merchants. Fix: strip the credential + re-enter handle() (full discovery flow). Regression test added. Gate green: ruff/ty/vulture/pytest (1835, 95.48%).

🤖 Generated with Claude Code

…500 for dynamic pricing)

Parity with node-commerce 2.7.1. The 2.5.7 malformed-credential re-challenge
skipped pre_validate, so a merchant whose compute_pricing reads state that
pre_validate populates crashed with a 500 instead of a 402. Fix: strip the junk
credential and re-enter handle() so the full discovery flow (pre_validate +
pricing + minting + compose) runs. Regression test added.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vvillait88
vvillait88 merged commit f216f84 into main Jul 17, 2026
7 checks passed
@vvillait88
vvillait88 deleted the fix/malformed-402-prevalidate branch July 17, 2026 21:17
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.

1 participant