【问题标题】:Paypal purchase form won't navigate to PaypalPaypal 购买表格不会导航到 Paypal
【发布时间】:2014-10-28 15:02:31
【问题描述】:

我正在使用 gpixpixel 脚本,并将其配置为允许访问者通过 Paypal 购买像素,但在单击“Pay with Paypal”按钮后,页面仅显示 DNS 错误。

这是交易页面上表单的代码:

<form method="post" action="https://sandbox.paypal.com/cgi-bin/webscr">
<input type="hidden" name="amount" value="1620">
<input type="hidden" name="business" value="testmerchant@nodomain.com">
<input type="hidden" name="cancel_return" value="http://-site-/gpix/get_pixels.php?step=6">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="custom" value="8:c6f79ef0f714fae081a6df9d778df198">
<input type="hidden" name="item_name" value="Pixels: ">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="NotifyURL" value="http://-site-/gpix/paypal_ipn.php?payment_id=8">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="http://-site-/gpix/index.php">
<input type="hidden" name="rm" value="2">
<p>
  <input type="submit" value="Pay with PayPal >>">
</p>
</form>

此外,此页面是在另一个页面(位于同一目录中)内的 iframe 中打开的。

感谢任何帮助。

如果有人想查看安装,我可以发布该网站的链接。

【问题讨论】:

    标签: php iframe paypal transactions paypal-sandbox


    【解决方案1】:

    你不见了www

    试试:

    &lt;form method="post" action="https://www.sandbox.paypal.com/cgi-bin/webscr"&gt;

    【讨论】:

    • 谢谢。现在它不会抛出 DNS 错误,而是尝试加载页面,状态栏显示等待 sandbox.paypal.com,然后停止。 仍然没有导航到 Paypal。
    • 它确实对我有用,可能是你的网络有问题。添加了屏幕截图
    • 这里是the installation 的链接。无法弄清楚为什么这不起作用。
    • 限制它的是 iframe 的同源策略!愚蠢的我。
    • 很高兴你发现了你的问题
    【解决方案2】:

    浏览器的同源策略限制了我作为 iframe 嵌入到另一个页面中的页面,无法导航到 Paypal 的网站。

    感谢 Vimal 指出丢失的 www,它的遗漏造成了错误的 URL,显然无法导航到任何地方。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-05-15
      • 2016-01-29
      • 2015-02-28
      • 2013-02-13
      • 2013-03-14
      • 2018-04-02
      相关资源
      最近更新 更多