2017-10-10 37 views
1

我正在尝试将贝宝整合到我的网站。我的要求是我想将计算机生成的金额传递给PayPal以支付该金额。 但是,当我使用按钮进行付款时,我被带到网站进行付款,在那里我使用沙箱帐户登录并进行付款。但是,当我付款,我得到一个消息,说贝宝按钮不工作 - 我们很抱歉错误

很抱歉,事情不会出现在那一刻是工作。

enter image description here 我搜索关于可能出现的问题的,从类似的问题问及实施建议的修复的其中托管在服务器中的按钮,并提供不同的参数,但没有运气。这里是我使用的代码

<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> 

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

+0

您是否创建了沙盒帐户? – Chris

回答

0

它看起来与您的沙盒帐户问题。您是否可以创建新的沙盒卖家和买家测试账户并重试。 以下是link供您参考创建PayPal沙箱帐户。

+0

没有我的沙盒帐户正在与其他集成。我想这不是问题 – GeekWithGlasses

相关问题