updaun
updaun14mo ago

라이브 키로 에스크로 거래 후 고객 이메일에서 구매확정 완료 후 라이브 서버 웹훅이 안오고 있습니다.

안녕하세요. 24.01.11 (목) 14:35 경 라이브 서버에 에스크로 처리결과 수신 웹훅 등록을 이메일로 요청드려 등록되었다고 확인 이메일 수신했습니다. 그 이후 라이브 키를 활용해 에스크로 거래 테스트를 진행했습니다. 금일 16:41분 경 구매자의 구매확정 이메일을 통해 구매확정을 진행했습니다. 웹훅을 수신받았습니다!!
2024-01-12 16:57:22,104 WARNING Bad Request: /order/escrow/
2024-01-12 16:57:25,881 WARNING Bad Request: /order/escrow/
2024-01-12 16:57:25,906 WARNING Bad Request: /order/escrow/
2024-01-12 17:00:12,694 WARNING Bad Request: /order/escrow/
2024-01-12 17:11:30,928 WARNING Bad Request: /order/escrow/
2024-01-12 17:15:28,514 WARNING Bad Request: /order/escrow/
2024-01-12 16:57:22,104 WARNING Bad Request: /order/escrow/
2024-01-12 16:57:25,881 WARNING Bad Request: /order/escrow/
2024-01-12 16:57:25,906 WARNING Bad Request: /order/escrow/
2024-01-12 17:00:12,694 WARNING Bad Request: /order/escrow/
2024-01-12 17:11:30,928 WARNING Bad Request: /order/escrow/
2024-01-12 17:15:28,514 WARNING Bad Request: /order/escrow/
mid : mokpohlpih our endpoint : https://mphw.l-league.co.kr/order/escrow/
def validate(self, attrs):
mid = attrs.get("mid", "")
oid = attrs.get("oid", "")
transactionid = attrs.get("transactionid", "")
txtype = attrs.get("txtype", "")
productid = attrs.get("productid", "")
ssn = attrs.get("ssn", "")
ip = attrs.get("ip", "")
mac = attrs.get("mac", "")
resdate = attrs.get("resdate", "")
mertkey = settings.TOSS_MERT_KEY
hash_string = f"{mid}{oid}{transactionid}{txtype}{productid}{ssn}{ip}{mac}{resdate}{mertkey}"
hashdata2 = hashlib.md5(hash_string.encode()).hexdigest()
hashdata = attrs.get("hashdata", "")
if hashdata != hashdata2:
raise CustomValidationError({"data": "잘못된 요청입니다."})
return attrs
def validate(self, attrs):
mid = attrs.get("mid", "")
oid = attrs.get("oid", "")
transactionid = attrs.get("transactionid", "")
txtype = attrs.get("txtype", "")
productid = attrs.get("productid", "")
ssn = attrs.get("ssn", "")
ip = attrs.get("ip", "")
mac = attrs.get("mac", "")
resdate = attrs.get("resdate", "")
mertkey = settings.TOSS_MERT_KEY
hash_string = f"{mid}{oid}{transactionid}{txtype}{productid}{ssn}{ip}{mac}{resdate}{mertkey}"
hashdata2 = hashlib.md5(hash_string.encode()).hexdigest()
hashdata = attrs.get("hashdata", "")
if hashdata != hashdata2:
raise CustomValidationError({"data": "잘못된 요청입니다."})
return attrs
이렇게 검증을 했는데 잘못되었을까요? 예제코드 php 파일은 transactionid가 tid로 나와있는데 transactionid가 맞는 건가요? tid로 바꿨는데 되었습니다!! xpay 가이드에는 transactionid로 되어있어 혼동되었습니다. 해결되었습니다. 🙂
3 Replies
토스페이먼츠 BOT
⏳ 잠시만 기다려주세요! 곧 답변드리겠습니다
오류 문의일 경우 아래 정보를 미리 전달해주시면, 빠른 답변에 도움이 됩니다.
- 주문번호(orderId) : - 문의 내용 :
(img를 함께 첨부해주시면 도움이됩니다)
* 계약관련 내용은 1544-7772로 문의주세요. * 주말/공휴일에는 답변이 늦을 수 있어요.
유부장
유부장14mo ago
해결 되셨군요. 확인 감사합니다.
토스페이먼츠 BOT
❤️ 기술문의 경험이 어떠셨나요?!
간단히 코멘트 남겨주세요! 제품 발전에 큰 힘이 됩니다.

Did you find this page helpful?