값 확인을 위해 추가했던 println 제거
This commit is contained in:
@@ -343,14 +343,12 @@ class ChargeService(
|
||||
|
||||
val body = response.body?.string() ?: throw SodaException("결제정보에 오류가 있습니다.")
|
||||
val verifyResponse = objectMapper.readValue(body, PayverseVerifyResponse::class.java)
|
||||
println(verifyResponse)
|
||||
|
||||
val isSuccess = verifyResponse.resultStatus == "SUCCESS" &&
|
||||
verifyResponse.transactionStatus == "SUCCESS" &&
|
||||
verifyResponse.orderId.toLongOrNull() == charge.id &&
|
||||
verifyResponse.processingAmount.compareTo(charge.can!!.price) == 0
|
||||
|
||||
println(isSuccess)
|
||||
if (isSuccess) {
|
||||
// verify 함수의 232~248 라인과 동일 처리
|
||||
charge.payment?.receiptId = verifyResponse.tid
|
||||
|
Reference in New Issue
Block a user