Skip to content

[codex] feat: add problem detail hints#14

Open
EfeDurmaz16 wants to merge 1 commit into
stripe:mainfrom
EfeDurmaz16:codex/add-problem-detail-hints
Open

[codex] feat: add problem detail hints#14
EfeDurmaz16 wants to merge 1 commit into
stripe:mainfrom
EfeDurmaz16:codex/add-problem-detail-hints

Conversation

@EfeDurmaz16

Copy link
Copy Markdown

Summary

  • Add optional hint support to PaymentException problem details.
  • Include default wallet/action hints for PaymentRequiredException, MalformedCredentialException, and PaymentMethodUnsupportedException.
  • Cover hint inclusion and omission with focused unit tests.

Why

This brings mpp-java in line with the mpp-rb problem-details behavior added in stripe/mpp-rb#33. The structured hint gives clients and agents a recovery path when payment credentials are missing, malformed, or use an unsupported method, without changing existing problem details for errors that do not define a hint.

Verification

  • mise exec java@temurin-17 -- ./gradlew test
  • git diff --check

Notes

  • This is an SDK parity/usability change, not a vulnerability report.

@EfeDurmaz16
EfeDurmaz16 marked this pull request as ready for review July 3, 2026 17:34
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