【问题标题】:PayPal Sandbox We're sorry, things don't appear to be working at the moment. Please try again laterPayPal 沙盒 很抱歉,目前似乎无法正常工作。请稍后再试
【发布时间】:2018-09-16 02:11:00
【问题描述】:
 <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" name="pay" class="pay" id="pay" method="POST" onsubmit="return true">
                    <!-- Identify your business so that you can collect the payments. -->
                    <input type="hidden" name="business" value="MY EMAIL">
                    <!-- Specify a Buy Now button. -->
                    <input type="hidden" name="cmd" value="_xclick">
                    <!-- Specify details about the item that buyers will purchase. -->
                    <input type="hidden" id="item_name" name="item_name" value="test">
                    <input type="hidden" id="amount" name="amount" value="00">
                    <input type="hidden" name="currency_code" value="SGD">
                    <input type="hidden" name="rm" value="1">

                    <!-- Specify URLs -->
                    <input type='hidden' name='cancel_return' value='<?=base_url('/order/cancel/')?>'>
                    <input type='hidden' id="return" name='return' value='<?=base_url('/order/success/')?>'>
                    <input type='hidden' id="notify_url" name='notify_url' value='<?=base_url('/order/ipn/')?>'>

这是我的表格。我通过 AJAX 传递值

    {
        var quantity = $(this).val();
        var amount = $('#amount');
        var item_name = $('#item_name');
        var email = '<?=$this->session->userdata('email').'@insead.edu'?>';

        if(quantity == 'one') {
            amount.val('23.54');
            item_name.val(email+' & 1 Box');
            return true;
        }

        else if(quantity == 'two') {
            amount.val('34.24');
            item_name.val(email + ' & 2 Box');
        }
        else {
            amount.val('00');
            item_name.val(email);
            return true;
        }

直到今天它都像魅力一样起作用。我没有修改任何东西。我在 LAMPP 上启动我的本地主机突然无法使用 PayPal 处理。我发现如果

<input type="hidden" id="amount" name="amount" value="00">

value 设置为 1 或更大将不起作用。如果 00 会将我重定向到贝宝以输入总金额。刚刚发生,我不知道为什么。请帮忙,提前谢谢。

【问题讨论】:

  • 您查看过 PayPal 文档吗?
  • 现在可以使用了。问题来自 PayPal 沙盒。需要一些时间才能恢复稳定。
  • 请将您的答案标记为已接受。
  • 还有两天我可以标记。
  • @aarontheam 你能说出确切的问题是什么以及如何纠正它

标签: php codeigniter paypal


【解决方案1】:

现在可以了。问题来自 PayPal 沙盒。需要一段时间才能恢复稳定。

【讨论】:

    猜你喜欢
    • 2017-11-02
    • 2020-07-01
    • 2017-10-03
    • 2017-11-21
    • 2022-06-25
    • 2017-12-07
    • 1970-01-01
    • 2019-09-22
    • 2020-04-26
    相关资源
    最近更新 更多