diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/can/charge/ChargeService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/can/charge/ChargeService.kt index d26e2df..f6dbb69 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/can/charge/ChargeService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/can/charge/ChargeService.kt @@ -342,7 +342,9 @@ class ChargeService( } val body = response.body?.string() ?: throw SodaException("결제정보에 오류가 있습니다.") + println(body) val verifyResponse = objectMapper.readValue(body, PayverseVerifyResponse::class.java) + println(verifyResponse) val isSuccess = verifyResponse.resultStatus == "SUCCESS" && verifyResponse.transactionStatus == "SUCCESS" && @@ -380,7 +382,8 @@ class ChargeService( throw SodaException("결제정보에 오류가 있습니다.") } } catch (e: Exception) { - e.printStackTrace() + print(e.localizedMessage) + print(e.message) throw SodaException("결제정보에 오류가 있습니다.") } }