Paypal错误我们很抱歉目前似乎没有工作

时间:2017-07-04 11:21:53

标签: php html paypal

我们很抱歉目前似乎没有工作。每次通过PayPal进行交易时都会出现此错误。

以下是实时测试的网址http://shreyasoft.in/paypal/,但未在沙盒中使用

这是我的paypal表格

paypal_form.php

这是沙箱帐户的代码

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_blank">
   <input type="hidden" name="cmd" value="_xclick">
   <input type="hidden" name="business" value="sethiharshit92-facilitator@gmail.com">
   <input type="hidden" name="item_name" value="Widget">
   <input type="hidden" name="amount" value="10.00"> 
   <input type="hidden" name="currency_code" value="USD">
    <input type='hidden' name='cancel_return' value='http://localhost/paypal/paypal_cancel.php'>
    <input type='hidden' name='return' value='http://localhost/paypal/paypal_success.php'>
   <input type="submit" value="Old PayPal checkout">
</form>

这是错误 paypal

1 个答案:

答案 0 :(得分:1)

Paypal需要能够直接联系yourwebhost以验证身份验证。

它的工作原理如下:

  1. 您向paypal发送请求
  2. paypal使用密钥
  3. 向您的网站发送请求
  4. 您的网站需要回复正确答案
  5. paypal继续交易。
  6. 步骤2此时失败,因为paypal无法联系您的本地主机。

    使用具有域名/公共IP的网络服务器,或者设置您的互联网路由器将流量路由到端口80到您的开发PC并使用您的公共IP与PayPal进行通信

相关问题