Compare commits
No commits in common. "ff255dbfae6941678de599ff54693be11e6c202f" and "dbe9b72feb3955d0979cef3dad2ae4d1be244830" have entirely different histories.
ff255dbfae
...
dbe9b72feb
|
@ -18,7 +18,6 @@ data class VerifyResult(
|
|||
@JsonProperty("receipt_id")
|
||||
val receiptId: String,
|
||||
val method: String,
|
||||
val pg: String,
|
||||
val status: Int,
|
||||
val price: Int
|
||||
)
|
||||
|
|
|
@ -160,11 +160,7 @@ class ChargeService(
|
|||
|
||||
if (verifyResult.status == 1 && verifyResult.price == charge.can?.price) {
|
||||
charge.payment?.receiptId = verifyResult.receiptId
|
||||
charge.payment?.method = if (verifyResult.pg.contains("카카오")) {
|
||||
"${verifyResult.pg}-${verifyResult.method}"
|
||||
} else {
|
||||
verifyResult.method
|
||||
}
|
||||
charge.payment?.method = verifyResult.method
|
||||
charge.payment?.status = PaymentStatus.COMPLETE
|
||||
member.charge(charge.chargeCan, charge.rewardCan, "pg")
|
||||
|
||||
|
|
Loading…
Reference in New Issue