【问题标题】:integrating PayPal gateway with html page将 PayPal 网关与 html 页面集成
【发布时间】:2014-01-18 23:21:36
【问题描述】:

我正在使用 codeigniter 和 html,并希望将 PayPal 与我的 HTML 页面集成。我已经将按钮粘贴到我的页面上,但无法通过单击按钮重定向到通过信用卡/借记卡付款的页面。请帮助

我的代码是

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="">
    <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif"    border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1"   height="1">
</form>

【问题讨论】:

  • 点击按钮时页面是否重定向到任何地方?
  • 您遗漏了代码开头的“
  • @CarbonBasedLifeform : 页面重定向到自身不会前进...

标签: php html codeigniter paypal


【解决方案1】:

新年快乐。你可以使用这个库来集成paypal https://github.com/phpfour/php-payment1

【讨论】:

  • 我正在使用 codeigniter 开发网站。你能帮我将文件与 codeigniter 集成吗?也祝你新年快乐...
  • 请遵循 codeigniter 指南以使用外部库。这很简单。
  • 上面的代码给出了相同的输出...不重定向到贝宝网关
【解决方案2】:

确保在表单标签的 action 属性中你有正确的 url。例如这里是沙盒测试环境的 url。

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
. . . 
</form>

【讨论】:

    【解决方案3】:

    确保您不在任何代理服务器后面。如果您使用任何软件,如热点,则不允许重定向到付款页面。

    【讨论】:

      猜你喜欢
      • 2010-09-21
      • 2014-01-28
      • 2015-06-01
      • 1970-01-01
      • 2013-10-11
      • 1970-01-01
      • 2014-07-18
      • 2013-02-21
      • 2012-06-28
      相关资源
      最近更新 更多