【问题标题】:Paypal dynamic return url not working贝宝动态返回网址不起作用
【发布时间】:2014-04-24 09:39:08
【问题描述】:

我正在尝试使用贝宝付款,但在付款完成后返回我的页面时出现问题。 我想动态地做(所以我不想在贝宝的帐户选项中设置它,因为我可能会将此帐户用于其他事情)。这是我发送给贝宝的表格:

<form id="paypalForm" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="POST"> 
    <input type="hidden" name="cmd" value="_cart">
    <input type="hidden" name="notify_url" value="http://zopomobile.es/pruebas/modules/rmaforsat/ipn_paypal.php">
    <input type="hidden" name="item_name_1" value="Pago de su orden a Zopomobile.">
    <input type="hidden" name="item_number_1" value="1">
    <input type="hidden" name="amount_1" value="259.12">
    <input type="hidden" name="currency_code" value="EUR">
    <input type="hidden" name="custom" value="152">
    <input type="hidden" name="business" value="admin-facilitator@zopomovil.es">
    <input type="hidden" name="upload" value="1">
    <input type="hidden" name="return" value="http://zopomobile.es/pruebas">
    <input type="hidden" name="cancel" value="http://zopomobile.es/pruebas/NO">
    <input type="hidden" name="rm" value="2">

</form>

我已尝试将“return”变量更改为“return_url”,但仍然无法正常工作。

【问题讨论】:

  • 你读过paypal的文档吗?

标签: php paypal


【解决方案1】:

如果您想自动重定向到“http://www.zopomobile.es/pruebas/” 那么您需要在您的 PayPal 个人资料上打开“自动退货”。 目前,自动返回在您的个人资料中处于“关闭”状态。

返回参数为return

https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_profile-website-payments

点击以上链接开启“自动返回”功能。

【讨论】:

    猜你喜欢
    • 2014-11-04
    • 2010-12-25
    • 1970-01-01
    • 2012-10-13
    • 1970-01-01
    • 2017-09-23
    • 2012-03-09
    • 2012-02-09
    • 2017-08-21
    相关资源
    最近更新 更多