안녕하세요. 웹훅 응답에 관련하여 문의드립니다. 오늘 AWS ECS Log를 확인하던 도중 다음과 같은 에러가 발생한 것을 확인하였습니다. 우리나라 시간 기준, 2023-01-09T09:46:43.234+09:00 발생.
org.springframework.web.server.ServerWebInputException: 400 BAD_REQUEST "Failed to read HTTP message"; nested exception is org.springframework.core.codec.DecodingException: JSON decoding errorJSON decoding error: Instantiation of [...Payment] value failed for JSON property method due to missing (therefore NULL) value for creator parameter method which is a non-nullable type...TossWebhookPayload["data"]-> ... Payment["method"]...error: 400 BAD_REQUEST "P1:사용가능한 포인트가 부족합니다"...
org.springframework.web.server.ServerWebInputException: 400 BAD_REQUEST "Failed to read HTTP message"; nested exception is org.springframework.core.codec.DecodingException: JSON decoding errorJSON decoding error: Instantiation of [...Payment] value failed for JSON property method due to missing (therefore NULL) value for creator parameter method which is a non-nullable type...TossWebhookPayload["data"]-> ... Payment["method"]...error: 400 BAD_REQUEST "P1:사용가능한 포인트가 부족합니다"...
현재 저희는 상점관리자 - 주문내역 - 취소에 대한 웹훅,
PAYMENT_STATUS_CHANGE
PAYMENT_STATUS_CHANGE
만 사용합니다. 토스페이먼츠 공식문서에 따르면
Payment
Payment
의
method
method
field 는 non-nullable type 으로 응답 시 반드시 내려주는 것으로 아래와 같이 확인하였습니다.
method string결제할 때 사용한 결제 수단입니다. 카드, 가상계좌, 간편결제, 휴대폰, 계좌이체, 상품권(문화상품권, 도서문화상품권, 게임문화상품권) 중 하나입니다.
method string결제할 때 사용한 결제 수단입니다. 카드, 가상계좌, 간편결제, 휴대폰, 계좌이체, 상품권(문화상품권, 도서문화상품권, 게임문화상품권) 중 하나입니다.