gpt4 book ai didi

php - Paypal 订单摘要丢失

转载 作者:太空宇宙 更新时间:2023-11-03 16:02:06 24 4
gpt4 key购买 nike

用于在重定向用户时 checkout 进程 https://www.sandbox.paypal.com paypal 不显示超过一种类型的项目,只显示最后一个(及其数量),即,如果用户在他的购物车中添加两种类型的产品并单击以进行结帐过程,paypal 仅显示第二种类型及其数量而不是第一种输入计费过程。我该如何解决这个问题?这是我在 View 文件中的 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>

最佳答案

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

关于php - Paypal 订单摘要丢失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23076083/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com