【问题标题】:paypal order summary missing贝宝订单摘要丢失
【发布时间】:2014-05-29 08:33:51
【问题描述】:

对于在重定向用户https://www.sandbox.paypal.com 时结帐过程,贝宝不会显示多个类型的项目,并且仅显示最后一个(及其数量),即,如果用户在他的购物车中添加两种类型的产品并单击结帐过程贝宝在计费过程中仅显示第二种类型及其数量,但不显示第一种类型。我该如何解决这个问题? 这是我在视图文件中的 api 代码

     <form style=" padding:0px;margin:0px;" name="frmOrderAutoSubmit" method="post" >


        <input type="hidden" name="upload" value="1">
            <input type="hidden" name="cmd" value="_xclick">
                <input type="hidden" name="business" value="sunymegh@gmail.com">
                    <?php $cdata = $this->cart->contents() ?>
                    <?php foreach ($cdata as $items) { ?>
                    <input type="hidden" name="quantity" value="<?php echo $items['qty']; ?>" />
                    <input type="hidden" name="item_name" value=" <?php echo $items['name']; ?>"/>
                    <input type="hidden" name="amount" value="<?php echo $items['price']; ?>"/>

                    <input type="hidden" name="rm" value="2" />
                    <input TYPE="hidden" name="address_override" value="0">

                         <?php } ?>
    </form>

【问题讨论】:

    标签: php paypal


    【解决方案1】:

    例如,您只提交了一个name 属性name="quantity"。 PayPal 使用name="quantity_1" 的格式。

    【讨论】:

      猜你喜欢
      • 2014-11-26
      • 2015-11-26
      • 2015-08-19
      • 2015-03-19
      • 2016-10-24
      • 2012-03-04
      • 2019-08-04
      相关资源
      最近更新 更多