Compare commits
4 Commits
dbe9b72feb
...
ff255dbfae
| Author | SHA1 | Date | |
|---|---|---|---|
| ff255dbfae | |||
| c8d7bdb8b7 | |||
| bb897fe965 | |||
| 1551e3231c |
@@ -18,6 +18,7 @@ data class VerifyResult(
|
|||||||
@JsonProperty("receipt_id")
|
@JsonProperty("receipt_id")
|
||||||
val receiptId: String,
|
val receiptId: String,
|
||||||
val method: String,
|
val method: String,
|
||||||
|
val pg: String,
|
||||||
val status: Int,
|
val status: Int,
|
||||||
val price: Int
|
val price: Int
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -160,7 +160,11 @@ class ChargeService(
|
|||||||
|
|
||||||
if (verifyResult.status == 1 && verifyResult.price == charge.can?.price) {
|
if (verifyResult.status == 1 && verifyResult.price == charge.can?.price) {
|
||||||
charge.payment?.receiptId = verifyResult.receiptId
|
charge.payment?.receiptId = verifyResult.receiptId
|
||||||
charge.payment?.method = verifyResult.method
|
charge.payment?.method = if (verifyResult.pg.contains("카카오")) {
|
||||||
|
"${verifyResult.pg}-${verifyResult.method}"
|
||||||
|
} else {
|
||||||
|
verifyResult.method
|
||||||
|
}
|
||||||
charge.payment?.status = PaymentStatus.COMPLETE
|
charge.payment?.status = PaymentStatus.COMPLETE
|
||||||
member.charge(charge.chargeCan, charge.rewardCan, "pg")
|
member.charge(charge.chargeCan, charge.rewardCan, "pg")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user