payverse 적용 #344
@@ -36,7 +36,6 @@ import java.math.BigDecimal
|
|||||||
import java.math.RoundingMode
|
import java.math.RoundingMode
|
||||||
import java.time.LocalDateTime
|
import java.time.LocalDateTime
|
||||||
import java.time.format.DateTimeFormatter
|
import java.time.format.DateTimeFormatter
|
||||||
import java.util.UUID
|
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
@Transactional(readOnly = true)
|
@Transactional(readOnly = true)
|
||||||
@@ -232,7 +231,7 @@ class ChargeService(
|
|||||||
val sign = DigestUtils.sha512Hex(
|
val sign = DigestUtils.sha512Hex(
|
||||||
String.format("||%s||%s||%s||%s||%s||", payverseSecretKey, payverseMid, chargeId, amount, reqDate)
|
String.format("||%s||%s||%s||%s||%s||", payverseSecretKey, payverseMid, chargeId, amount, reqDate)
|
||||||
)
|
)
|
||||||
val customerId = UUID.nameUUIDFromBytes("${serverEnv}_user_${member.id!!}".toByteArray()).toString()
|
val customerId = "${serverEnv}_user_${member.id!!}"
|
||||||
val requestCurrency = "KRW"
|
val requestCurrency = "KRW"
|
||||||
|
|
||||||
val payload = linkedMapOf(
|
val payload = linkedMapOf(
|
||||||
@@ -244,8 +243,6 @@ class ChargeService(
|
|||||||
"requestCurrency" to requestCurrency,
|
"requestCurrency" to requestCurrency,
|
||||||
"requestAmount" to amount,
|
"requestAmount" to amount,
|
||||||
"reqDate" to reqDate,
|
"reqDate" to reqDate,
|
||||||
"billkeyReq" to "N",
|
|
||||||
"mallReserved" to "",
|
|
||||||
"sign" to sign
|
"sign" to sign
|
||||||
)
|
)
|
||||||
val payloadJson = objectMapper.writeValueAsString(payload)
|
val payloadJson = objectMapper.writeValueAsString(payload)
|
||||||
|
Reference in New Issue
Block a user