test #207

Merged
klaus merged 3 commits from test into main 2024-08-27 07:31:05 +00:00
1 changed files with 5 additions and 1 deletions
Showing only changes of commit c8d7bdb8b7 - Show all commits

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")