折扣金额和下拉选项未在IPN页面上显示

时间:2019-03-28 06:20:35

标签: php paypal paypal-ipn

我正在尝试通过html格式通过Paypal发送一些购物车信息,我正在发送商品名称,金额,折扣金额,尺寸(选项),并且所有这些值都已正确发送到Paypal,并且paypal显示了所有这些值在其付款页面(金额,商品名称,折扣金额,尺寸选项)中,但是在成功页面上完成交易后,仅显示一些数据,例如商品名称,mc_dross,但折扣金额和尺寸选项未显示

html贝宝表单

 <input type="hidden" name="item_name_<?php echo $num_value; ?>" value="<?php echo $row['name']; ?>">

 <input type="hidden" name="item_number_<?php echo $num_value; ?>" value="<?php echo $row['sku']; ?>">

<input type="hidden" name="on0_<?php echo $num_value; ?>" value="size">

<input type="hidden" name="os0_<?php echo $num_value; ?>" value="<?php echo $_SESSION['size']; ?>">

 <input type="hidden" name="amount_<?php echo $num_value; ?>" value="<?php echo number_format($row['d_price'],2); ?>">

 <input type="hidden" name="discount_amount_<?php echo $num_value; ?>" value ="<?php echo number_format($discount_amount, 2); ?>">

 <input  type="hidden" name="quantity_<?php echo $num_value; ?>" value="<?php echo $_SESSION['qty_array'][$index]; ?>">

success.php

<?php } if (isset($_REQUEST['item_name1'])) { ?>
<li>
    <a href="#">Product</a> 
    <span class="count"><?php echo $_REQUEST['item_name1']; ?></span>
</li>

<?php } if (isset($_REQUEST['quantity1'])) { ?>
<li>
    <a href="#">Quantity</a> 
    <span class="count"><?php echo $_REQUEST['quantity1']; ?></span>
</li>

<?php } if (isset($_REQUEST['mc_gross'])) { ?>
<li>
    <a href="#">Amount</a>  
    <span class="count"><?php echo $_REQUEST['mc_gross']; ?></span>
</li>

<?php } if (isset($_REQUEST['discount'])) { ?>
<li>
    <a href="#">Discount Amount</a>  
    <span class="count"><?php echo $_REQUEST['discount']; ?></span>
</li>

<?php } if (isset($_REQUEST['option_selection1'])) { ?>
<li>
    <a href="#">option</a>  
    <span class="count"><?php echo $_REQUEST['option_selection1']; ?></span>
</li>

<?php } if (isset($_REQUEST['option_name1'])) { ?>
<li>
    <a href="#">selected size</a>  
    <span class="count"><?php echo $_REQUEST['option_name1']; ?></span>
</li>

<?php } if (isset($_REQUEST['first_name'])) { ?>
<li>
    <a href="#">First Name</a> 
    <span class="count"><?php echo $_REQUEST['first_name']; ?></span>
</li>

所有数据都显示在成功中。php期望折扣金额和选项(大小)

我没弄错我在成功中使用的变量错误。php都是正确的。

0 个答案:

没有答案