pg 결제

- pg 사 기록시 pg로 기록하지 않고 결제에서 받아오는 pg사 이름으로 수정
This commit is contained in:
Klaus 2024-08-27 16:04:20 +09:00
parent 3a1db0f595
commit 1551e3231c
2 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ data class VerifyResult(
@JsonProperty("receipt_id")
val receiptId: String,
val method: String,
val pg: String,
val status: Int,
val price: Int
)

View File

@ -162,7 +162,7 @@ class ChargeService(
charge.payment?.receiptId = verifyResult.receiptId
charge.payment?.method = verifyResult.method
charge.payment?.status = PaymentStatus.COMPLETE
member.charge(charge.chargeCan, charge.rewardCan, "pg")
member.charge(charge.chargeCan, charge.rewardCan, verifyResult.pg)
applicationEventPublisher.publishEvent(
ChargeSpringEvent(