gpt4 book ai didi

codeigniter - 如何在Codeigniter中实现paypal

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

我已经使用 Codeigniter 开发了一个网站,我想为我的一个应用程序设置 paypal。为此,我遵循了许多形式,例如 THIS但是当我按照所有步骤操作时,它给了我空白屏幕...任何人都可以告诉我甚至建议我更好的 Paypal 教程..在此先感谢..

最佳答案

use following paypal form pattern for paypal payment

//$urlpaypal = "https://www.paypal.com/cgi-bin/webscr";
//$urlpaypal = "https://www.sandbox.paypal.com/cgi-bin/webscr";//sandbox

<form method="post" name="frmPayPal" id="frmPayPal" action="<?=$urlpaypal ?>">

<input type="hidden" name="item_number" value="<?=$id?>">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="business" value="<?=$businessId?>">
<input type="hidden" name="redirect_cmd" value="_cart">
<input type="hidden" name="handling_cart" value="<?=$shipprice?>">
<input type="hidden" name="cmd" value="_ext-enter" />
<input type='hidden' name='upload' value='1'>
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="lc" value="<?php echo $lccode;?>">
<input type="hidden" name="bn" value="PP-SubscriptionsBF">
<input type="hidden" name="image_url" value="<?=base_url()?>img/logo.jpg">
<input type="hidden" name="return" value="<?=base_url()?>index.php/payment/receipt/<?php echo $id;?>">
<input type="hidden" name="notify_url" value="<?=base_url()?>index.php/payment/notify">
<input type="hidden" name="cancel_return" value="<?=base_url()?>index.php/payment/cancle">
<input type="hidden" name="invoice" value="<?=base64_encode($invoiceId)?>">
<input type="hidden" name="currency_code" value="<?php echo $currencycode;?>">
<input type="hidden" name="src" value="1" />
<input type="hidden" name="sra" value="1" />
<input type="hidden" name="cs" value="0" />
<input type="hidden" name="custom" value="<?=$customFieldValue?>">
<input type="hidden" name="discount_amount_cart" value="<?=$discount_amount?>">
<input type="hidden" name="cc_number" value="123">
<input type="hidden" name="cpp_ headerback_ color" value="78f3f5">
<input type="hidden" name="cpp_ headerborder_color" value="78f3f5">
<input type="hidden" name="cpp_payflow_ color" value="78f3f5">
</form>

and js code for auto form submission in one second
<script type="text/javascript" language="javascript">
setTimeout("document.forms['frmPayPal'].submit()", 1000);
</script>

关于codeigniter - 如何在Codeigniter中实现paypal,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18051697/

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