Conversation
prompt selling Price 가능 여부 확인 로직
브라우저가 결제창에서 돌아오지 못한 결제를 서버-투-서버로 보완한다. 파트너 관리자에 등록한 URL: /api/prompts/purchases/payple-webhook - PCD_RST_URL 겸용인 /payple-result는 PURCHASE_RESULT_REDIRECT_URL이 설정된 운영에서 302를 반환해 웹훅 수신에 부적합. 리다이렉트 없이 항상 200을 주는 전용 경로로 분리하고, 처리 실패 시에만 500으로 페이플 재전송을 유도한다. - 웹훅 페이로드는 PCD_PAY_URL이 빈 문자열이라 기존 키 누락 가드에 걸려 재검증이 전건 실패했다. PCD_PAY_COFURL 폴백 추가. - 재검증 대상 URL이 요청 본문에서 오므로 payple.kr 도메인 + https 검사 추가. 인증 없는 공개 웹훅이 같은 함수를 타므로 없으면 SSRF. - 취소완료 이벤트는 PCD_USER_DEFINE1이 없어 결제 처리 로직을 태울 수 없다. 환불 정본은 admin-refund 워크플로(#533)라 로그만 남긴다. - 웹훅 페이로드의 PCD_PAYER_HP/EMAIL을 로그 마스킹 대상에 추가. 멱등성은 handlePaypleResult의 findExistingPurchase를 그대로 재사용해 /complete와 동시 도착해도 중복 구매가 생기지 않는다.
[FEAT] 페이플 결제결과 웹훅 수신 엔드포인트 (#536)
fix: 페이플 결제결과 리다이렉트 CORS 500 해소 — 미허용 origin throw 제거 (#538)
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.
📌 기능 설명
📌 구현 내용
📌 구현 결과
📌 논의하고 싶은 점