pg 결제

- pg사가 카카오페이이면 "카카오페이-'결제수단'"으로 기록
This commit is contained in:
Klaus 2024-08-27 16:24:17 +09:00
parent bb897fe965
commit c8d7bdb8b7
1 changed files with 5 additions and 1 deletions

View File

@ -160,7 +160,11 @@ class ChargeService(
if (verifyResult.status == 1 && verifyResult.price == charge.can?.price) {
charge.payment?.receiptId = verifyResult.receiptId
charge.payment?.method = "${verifyResult.pg}-${verifyResult.method}"
charge.payment?.method = if (verifyResult.pg.contains("카카오")) {
"${verifyResult.pg}-${verifyResult.method}"
} else {
verifyResult.method
}
charge.payment?.status = PaymentStatus.COMPLETE
member.charge(charge.chargeCan, charge.rewardCan, "pg")