Skip to content
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

fix: 가상 계좌 취소 웹훅 오류 수정 #247

Merged
merged 1 commit into from
Jan 13, 2024
Merged

Conversation

byulcode
Copy link
Collaborator

구현 기능

오류 상황 : 결제 수단이 가상 계좌일 때 결제 취소를 하면 서버 에러 발생

발생 이유: 가상계좌의 상태 변화는 아래와 같다. 즉, 결제 취소를 할 때에도 웹훅이 전송되는데, 그 때의 상태값 CANCELED에 대한 처리를 해주지 않아 예외가 발생했습니다.
image

resolve: #242

@byulcode byulcode added fix 수정 booking 예매 labels Jan 13, 2024
@byulcode byulcode requested a review from annahxxl January 13, 2024 07:53
@byulcode byulcode self-assigned this Jan 13, 2024
Comment on lines +106 to 107
case CANCELED -> log.info("Virtual Amount Payment Canceled");
default -> throw new BookingException(BookingErrorCode.INTERNAL_SERVER_ERROR);
Copy link
Collaborator Author

@byulcode byulcode Jan 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cancelPayment 에서 상태값을 변경해주기 때문에 웹훅 전송시 별다른 동작이 필요 없다고 생각해 우선 로깅해놨습니다.!

@annahxxl annahxxl merged commit fec4735 into main Jan 13, 2024
1 check passed
@annahxxl annahxxl deleted the booking/242 branch January 14, 2024 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
booking 예매 fix 수정
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

fix: 가상 계좌 웹훅 연동 오류 해결하기
2 participants