-
Notifications
You must be signed in to change notification settings - Fork 0
hotfix : 결제 신청시 customerKey 형식 오류 #397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+59
−12
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| { | ||
| "seong-jin-jo": { | ||
| "name": "조성진", | ||
| "slackId": "U07V0TY7CF9" | ||
| }, | ||
| "dongjooyun": { | ||
| "name": "윤동주", | ||
| "slackId": "U09KJ5DTD2B" | ||
| }, | ||
| "Hyeonjun0527": { | ||
| "name": "최현준", | ||
| "slackId": "U08298MKCBE" | ||
| }, | ||
| "HA-SEUNG-JEONG": { | ||
| "name": "정하승", | ||
| "slackId": "U0A6HD2AB0E" | ||
| }, | ||
| "solvedacuser": { | ||
| "name": "노정환", | ||
| "slackId": "U0A6NRTGK2Q" | ||
| } | ||
| } |
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
customerKey 유효성 검사 실패 시 사용자에게 오해를 줄 수 있는 에러 처리
유효성 검사에서
throw new Error를 하더라도 해당 에러는 137번 줄의catch블록에서console.error만 호출하고payment상태는null로 유지됩니다. 이후 사용자가 결제하기 버튼을 클릭하면onPay내부(40번 줄)에서 "결제 모듈을 불러오는 중입니다. 잠시 후 다시 시도해주세요."라는 오해의 소지가 있는 메시지가 표시됩니다. 실제 원인(customerKey 형식 오류)과 전혀 다른 메시지를 보게 됩니다.또한, 에러 메시지에
customerKey값(= memberId 기반)이 그대로 포함되어console.error로 출력될 수 있습니다.🛡️ 수정 제안: 유효성 검사 실패 시 사용자에게 명확한 피드백 제공
// Toss 에서 2자이상 50자이하 문자열을 요구함 if (customerKey.length < 2 || customerKey.length > 50) { + console.error(`customerKey가 유효하지 않습니다 (길이: ${customerKey.length})`); + alert('결제 정보를 불러오는 데 문제가 발생했습니다. 고객센터에 문의해주세요.'); + return; - throw new Error( - `customerKey가 유효하지 않습니다: ${customerKey} (길이: ${customerKey.length})`, - ); }📝 Committable suggestion
🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@claude 너도 대안을 제시해봐
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.