From 0ddcda4b0c5489b38c812e75751efe214700fb07 Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 2 Feb 2026 09:37:39 +0000 Subject: [PATCH] =?UTF-8?q?toss=20=EB=AA=A8=EB=B0=94=EC=9D=BC=EA=B2=B0?= =?UTF-8?q?=EC=A0=9C=20=ED=8F=AC=EC=9D=B8=ED=8A=B8=20=EC=A0=81=EC=9A=A9?= =?UTF-8?q?=EC=8B=9C=20=EA=B2=B0=EC=A0=9C=20=EC=98=A4=EB=A5=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/shop/orderform.sub.php | 8 ++++++-- shop/toss/toss_result.php | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/mobile/shop/orderform.sub.php b/mobile/shop/orderform.sub.php index e6f9008b9..7033185d3 100644 --- a/mobile/shop/orderform.sub.php +++ b/mobile/shop/orderform.sub.php @@ -1444,8 +1444,8 @@ function pay_approval() break; } f.method.value = pay_method; - f.orderId.value = ''; - f.orderName.value = ''; + f.orderId.value = ""; + f.orderName.value = ""; f.customerName.value = pf.od_name.value; f.customerEmail.value = pf.od_email.value; @@ -1468,6 +1468,10 @@ function pay_approval() f.amountCurrency.value = 'KRW'; f.amountValue.value = f.good_mny.value; + if (pf && pf.amountValue) { + pf.amountValue.value = f.good_mny.value; + } + f.taxFreeAmount.value = pf.comm_free_mny.value; diff --git a/shop/toss/toss_result.php b/shop/toss/toss_result.php index 6e86aa212..e22bcf64d 100644 --- a/shop/toss/toss_result.php +++ b/shop/toss/toss_result.php @@ -16,9 +16,9 @@ $row = sql_fetch($sql); $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); }