【问题标题】:Paypal Button Not Working - We are sorry errorPaypal 按钮不工作 - 我们很抱歉错误
【发布时间】:2018-03-21 12:57:59
【问题描述】:

我正在尝试将 PayPal 集成到我的网站。我的要求是我想将计算机生成的金额传递给 PayPal 以支付该金额。 但是当我使用按钮付款时,我会被带到付款网站,我使用沙盒帐户登录并付款。但是当我付款时,我会收到一条消息说

很抱歉,目前似乎无法正常工作。

我从提出的类似问题中搜索了可能的问题,并实施了建议的修复方法,即在服务器中托管一个按钮并提供不同的参数,但没有运气。这是我正在使用的代码

    <form 
                action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
                <!-- Identify your business so that you can collect the payments. -->
                <input type="hidden" name="business" value="**********@gmail.com">
                <!-- Specify a Buy Now button. -->
                <input type="hidden" name="cmd" value="_xclick">
                <!-- Specify details about the item that buyers will purchase. -->
                <input type="hidden" name="item_name" value="Product1">
                <input type="hidden" name="item_number" value="1">
                <input type="hidden" name="amount" value="10.00">
                <input type="hidden" name="currency_code" value="USD">
                <input type="hidden" name="rm" value="2" />
                <!--in custom field add user id-->
                      <input type="hidden" name="custom" value="102">
                <!-- Specify URLs -->
                <input type='hidden' name='cancel_return' value='http://www.shreyash.tech'>
                <input type='hidden' name='return' value='http://www.google.co.in'>
                <input type="image" name="submit" border="0" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" alt="PayPal - The safer, easier way to pay online">
                <img alt="" border="0" width="1" height="1" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" >
    </form>

我不知道我在这里做错了什么。

【问题讨论】:

  • 您是否创建了沙盒帐户?

标签: php paypal payment-gateway paypal-sandbox paypal-ipn


【解决方案1】:

您的沙盒帐户似乎存在问题。请您创建新的沙盒卖家和买家测试帐户,然后重试。 这里是link,供您创建PayPal沙盒账户时参考。

【讨论】:

  • 没有,我的沙盒帐户正在使用其他集成。我想这不是问题
猜你喜欢
  • 2017-12-07
  • 1970-01-01
  • 2017-11-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-12-21
  • 1970-01-01
相关资源
最近更新 更多