Conversation
pg-simulator 모듈 추가 및 설정 추가
Feature/week6 payments
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.
📌 Summary
PaymentV1Controller.handlePaymentCallback에서 처리💬 Review Points
1. PG 결제 완료 후 콜백 전송 실패 시나리오 처리
PG 사에서 결제가 완료되었지만, 우리 서비스로 콜백을 보내는 과정에서 네트워크 오류가 발생하여 PG는 결제 완료 상태이지만 우리 서버는 결제 완료 사실을 모르는 상황일 때
실무에서는 이런 상황을 어떻게 해결하시나요?
PG 상태 확인 API 호출 시 주의사항이 있나요?
2. 주문 만료 처리 및 스케줄러 운영
사용자가 주문을 생성했지만 일정 시간 내에 결제를 완료하지 않은 경우 주문 만료 처리를 어떻게 하시나요?
Order.createdAt이 일정 시간 지난 주문들을OrderStatus.CANCELED로 변경하는 스케줄러를 운영하시나요?✅ Checklist
⚡ PG 연동 대응
🛡 Resilience 설계