fix(payverse): productName 비교 로직 제거

- productName에 +가 있는 경우 저장된 데이터와 검증을 위한 데이터가 다르게 나오기 때문에 비교 불가능
This commit is contained in:
2025-10-03 02:10:30 +09:00
parent 06c0374f16
commit 0308e9ad83
2 changed files with 0 additions and 4 deletions

View File

@@ -70,7 +70,6 @@ data class PayverseVerifyResponse(
val transactionMessage: String,
val orderId: String,
val customerId: String,
val productName: String,
val requestCurrency: String,
val requestAmount: BigDecimal
)
@@ -82,7 +81,6 @@ data class PayverseWebhookRequest(
val schemeGroup: String,
val schemeCode: String,
val orderId: String,
val productName: String,
val requestCurrency: String,
val requestAmount: BigDecimal,
val resultStatus: String,

View File

@@ -128,7 +128,6 @@ class ChargeService(
val isSuccess = request.resultStatus == "SUCCESS" &&
request.mid == mid &&
charge.title == request.productName &&
isAmountMatch &&
request.sign == expectedSign
@@ -349,7 +348,6 @@ class ChargeService(
val isSuccess = verifyResponse.resultStatus == "SUCCESS" &&
verifyResponse.transactionStatus == "SUCCESS" &&
verifyResponse.orderId.toLongOrNull() == charge.id &&
verifyResponse.productName == charge.title &&
verifyResponse.customerId == customerId &&
verifyResponse.requestAmount.compareTo(charge.can!!.price) == 0