payverse 적용 #344

Merged
klaus merged 44 commits from test into main 2025-10-10 07:44:07 +00:00
Showing only changes of commit 79cd2b8123 - Show all commits

View File

@@ -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("결제정보에 오류가 있습니다.")
}
}