fix : TossPayments 클라이언트 예외 처리 개선#955
Merged
Merged
Conversation
…ssPayments error handling Payment and order services had gateway-security disabled (default: false), causing @CurrentUserId to fail with IllegalStateException when AuthContext was null. This was the root cause of the SYS-001 (500) error on POST /api/v1/payments/confirm. Changes: - Enable gateway-security in payment-service (required-paths: /api/v1/payments/confirm) - Enable gateway-security in order-service (required-paths: cancel/refund) - Add catch-all exception handling in TossPaymentsWebClient to prevent unhandled connection errors from bypassing PaymentFailureHandler https://claude.ai/code/session_01TLQ2fbwXGA2vAuit2itqde
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
개요
작업 / 변경 내용
Gateway Security 설정 강화
enabled: true)gateway-auth-enabled옵션 추가required-paths)와 선택적 사용자 컨텍스트 경로(optional-user-context-paths) 정의/api/v1/orders/*/cancel,/api/v1/orders/*/refund필수 인증/api/v1/payments/confirm필수 인증TossPayments 클라이언트 예외 처리 개선
confirm(),cancel(),query()메서드에 일반 Exception 핸들링 추가TossPaymentsApiException으로 통일하여 일관된 에러 처리테스트 / 체크리스트
./gradlew build)참고사항
APP_GATEWAY_SECURITY_ENABLED환경변수 설정 확인 필요https://claude.ai/code/session_01Lco3ZbTBRzVDcrUKM9BvHH