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

.

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/


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

?

드 php 은 transactionid가 tid데 transactionid?

tid!!
xpay 는 transactionid.
. 🙂
Was this page helpful?