toss 모바일결제 포인트 적용시 결제 오류 수정

This commit is contained in:
thisgun
2026-02-02 09:37:39 +00:00
parent bf27af3925
commit 0ddcda4b0c
2 changed files with 8 additions and 4 deletions

View File

@ -1444,8 +1444,8 @@ function pay_approval()
break; break;
} }
f.method.value = pay_method; f.method.value = pay_method;
f.orderId.value = '<?=$od_id?>'; f.orderId.value = "<?php echo $od_id; ?>";
f.orderName.value = '<?=$goods?>'; f.orderName.value = "<?php echo $goods; ?>";
f.customerName.value = pf.od_name.value; f.customerName.value = pf.od_name.value;
f.customerEmail.value = pf.od_email.value; f.customerEmail.value = pf.od_email.value;
@ -1468,6 +1468,10 @@ function pay_approval()
f.amountCurrency.value = 'KRW'; f.amountCurrency.value = 'KRW';
f.amountValue.value = f.good_mny.value; f.amountValue.value = f.good_mny.value;
if (pf && pf.amountValue) {
pf.amountValue.value = f.good_mny.value;
}
<?php if($default['de_tax_flag_use']) { ?> <?php if($default['de_tax_flag_use']) { ?>
f.taxFreeAmount.value = pf.comm_free_mny.value; f.taxFreeAmount.value = pf.comm_free_mny.value;
<?php } ?> <?php } ?>

View File

@ -16,9 +16,9 @@ $row = sql_fetch($sql);
$data = isset($row['dt_data']) ? unserialize(base64_decode($row['dt_data'])) : array(); $data = isset($row['dt_data']) ? unserialize(base64_decode($row['dt_data'])) : array();
$amount = isset($data['amountValue']) ? $data['amountValue'] : 0; $amount = isset($data['amountValue']) ? (int)$data['amountValue'] : 0;
if ($amount <= 0) { if ($amount <= 0 || $amount !== (int)$order_price) {
alert('결제금액이 올바르지 않습니다.', G5_SHOP_URL); alert('결제금액이 올바르지 않습니다.', G5_SHOP_URL);
} }