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

@ -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);
}