Fix: 결제 승인 시각을 Toss 승인 시각으로 기록하도록 수정 - #416
Merged
Merged
Conversation
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.
✅ PR 설명
결제 완결 시 approvedAt을 서버의 LocalDateTime.now()로 기록하고 있어, PG(Toss)가 확정한 실제 승인 시각과 어긋날 수 있었습니다.
특히 reconciliation 배치로 완결되는 경우 실제 승인과 우리 기록 사이에 수십 분 오차가 발생하며, 이 값은 환불 7일 기한 판정 기준이기도 합니다.
따라서 결제 원장의 승인 시각을 Toss 응답의 approvedAt을 source of truth로 기록하도록 수정했습니다.
🏗 작업 내용
📸 테스트 결과 (선택)
🔗 관련 이슈 (선택)
🚨 참고 사항 (선택)