PayPal网络错误:很抱歉,我们无法使用您选择的资金来源完成购买

时间:2020-07-11 07:29:45

标签: paypal

我在PayPal中创建了一个帐户,并在实时模式下与PHP集成。但是当我输入卡的详细信息并提交后,发现错误消息。

很抱歉,我们无法使用您选择的资金来完成购买。请添加借记卡或信用卡。

<form action="<?php echo $paypalUrl; ?>" method="post" name="frmPayPal1">
                <div class="panel price panel-red">
                        <input type="hidden" name="business" value="<?php echo $paypalId; ?>">
                        <input type="hidden" name="cmd" value="_xclick">
                        <input type="hidden" name="item_name" value="It Solution Stuff">
                        <input type="hidden" name="item_number" value="2">
                        <input type="hidden" name="amount" value="1">
                        <input type="hidden" name="no_shipping" value="1">
                        <input type="hidden" name="currency_code" value="AUD">
                        <input type="hidden" name="cancel_return" value="http://localhost/paypal/cancel.php">
                        <input type="hidden" name="return" value="http://localhost/paypal/success.php">  
                        
                    <div class="panel-heading  text-center">
                    <h3>PRO PLAN</h3>
                    </div>
                    <div class="panel-body text-center">
                        <p class="lead" style="font-size:40px"><strong>$20 / month</strong></p>
                    </div>
                    <ul class="list-group list-group-flush text-center">
                        <li class="list-group-item"><i class="icon-ok text-danger"></i> Personal use</li>
                        <li class="list-group-item"><i class="icon-ok text-danger"></i> Unlimited projects</li>
                        <li class="list-group-item"><i class="icon-ok text-danger"></i> 27/7 support</li>
                    </ul>
                    <div class="panel-footer">
                        <button class="btn btn-lg btn-block btn-danger" href="#">BUY NOW!</button>
                    </div>
                </div>
            </form>

一些用于重定向的变量是:

<?php
 $paypalUrl='https://www.paypal.com/cgi-bin/webscr';
 $paypalId='xxx@xxxxxxxx.xxx';
 ?>

1 个答案:

答案 0 :(得分:1)

这不是Stackoverflow的问题。没有技术问题,当然也没有编程问题。

问题出在标题中:“我们无法使用您选择的资金来源完成购买。”,解决方案如下:“请添加借记卡或信用卡。”

这是业务例外。用户看到此消息时,需要使用其他付款方式(例如其他卡)付款。