Skip to content

fix: harden SUMIT checkout routes for production#3

Merged
BenKalsky merged 1 commit into
mainfrom
fix/production-ready-checkout-routes
May 1, 2026
Merged

fix: harden SUMIT checkout routes for production#3
BenKalsky merged 1 commit into
mainfrom
fix/production-ready-checkout-routes

Conversation

@BenKalsky
Copy link
Copy Markdown
Member

Summary

  • Harden charge route handling for upstream non-2xx and unmapped SUMIT responses
  • Add nested request validation before calling SUMIT
  • Make webhook query-string secret opt-in and add real multipart parsing
  • Add token-safe checkout hook helpers and update README usage
  • Bump package version to 0.1.1

Test Plan

  • pnpm test
  • pnpm typecheck
  • pnpm build
  • npm pack --dry-run

Notes

  • Query-param webhook secrets are now opt-in via verifySumitSharedSecret(secret, { queryParam: "secret" }); header verification remains the default.

@BenKalsky BenKalsky merged commit ed41105 into main May 1, 2026
1 check passed
@BenKalsky BenKalsky deleted the fix/production-ready-checkout-routes branch May 1, 2026 14:50
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