토스페이먼츠 결제 요청 폼의 customerName hidden 필드에 주문자명 ($od_name)이 인코딩 없이 출력되던 것을 get_text() 적용으로 정리. 직전 주문 필드 인코딩 처리와 동일한 맥락의 마무리. hidden value 의 엔티티는 결제 SDK 가 값을 읽을 때 브라우저가 디코딩하므로 토스로 전달되는 구매자명에는 영향 없음. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
31 lines
1.8 KiB
PHP
31 lines
1.8 KiB
PHP
<?php
|
|
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
|
|
|
?>
|
|
<input type="hidden" name="method" value="">
|
|
<input type="hidden" name="orderId" value="<?php echo isset($od_id) ? $od_id : ''; ?>">
|
|
<input type="hidden" name="orderName" value="<?php echo isset($goods) ? $goods : ''; ?>">
|
|
<input type="hidden" name="customerName" value="<?php echo isset($od_name) ? get_text($od_name) : ''; ?>">
|
|
<input type="hidden" name="customerEmail" value="<?php echo isset($od_email) ? $od_email : ''; ?>">
|
|
<input type="hidden" name="customerMobilePhone" value="<?php echo isset($od_hp) ? $od_hp : ''; ?>">
|
|
<input type="hidden" name="cardUseEscrow" value="false">
|
|
<input type="hidden" name="escrowProducts" value=''>
|
|
<input type="hidden" name="cardflowMode" value="DEFAULT">
|
|
<input type="hidden" name="cardeasyPay" value="PAYCO">
|
|
<input type="hidden" name="cardUseCardPoint" value="false">
|
|
<input type="hidden" name="cardUseAppCardOnly" value="false">
|
|
<input type="hidden" name="amountCurrency" value="KRW">
|
|
<input type="hidden" name="amountValue" value="<?php echo isset($tot_price) ? $tot_price : 0; ?>">
|
|
<input type="hidden" name="taxFreeAmount" value="<?php echo isset($comm_free_mny) ? $comm_free_mny : 0; ?>">
|
|
<input type="hidden" name="windowTarget" value="iframe">
|
|
|
|
<input type="hidden" name="good_mny" value="<?php echo $tot_price; ?>">
|
|
<?php
|
|
if($default['de_tax_flag_use']) {
|
|
?>
|
|
<input type="hidden" name="comm_tax_mny" value="<?php echo isset($comm_tax_mny) ? $comm_tax_mny : 0; ?>"> <!-- 과세금액 -->
|
|
<input type="hidden" name="comm_vat_mny" value="<?php echo isset($comm_vat_mny) ? $comm_vat_mny : 0; ?>"> <!-- 부가세 -->
|
|
<input type="hidden" name="comm_free_mny" value="<?php echo isset($comm_free_mny) ? $comm_free_mny : 0; ?>"> <!-- 비과세 금액 -->
|
|
<?php
|
|
}
|
|
?>
|