简体   繁体   English

贝宝动态返回网址不起作用

[英]Paypal dynamic return url not working

I am trying to make a paypal payment and I have a problem when returning to my page after the payment is completed. 我正在尝试进行贝宝付款,付款完成后返回页面时遇到问题。 I want to do it dynamically (so I do not want to set it in the paypal's account option, as I may use this account for other things). 我想动态地进行操作(因此,我不想在贝宝的帐户选项中进行设置,因为我可能将此帐户用于其他用途)。 This is the form I send to paypal: 这是我发送给贝宝的表格:

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

I have tried changing the "return" variable to "return_url", still not working. 我尝试将“ return”变量更改为“ return_url”,但仍然无法正常工作。

If you want to automatically re-direct to " http://www.zopomobile.es/pruebas/ " then you need to turn on "Auto Return" on your PayPal profile. 如果您想自动重定向到“ http://www.zopomobile.es/pruebas/ ”,则需要在PayPal个人资料上打开“自动返回”。 Right now, Auto Return is "OFF" in your profile. 现在,您的个人资料中的“自动返回”处于“关闭”状态。

The return parameter is return 返回参数是return

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

Check above link to turn on the "Auto Return" feature. 检查上面的链接以打开“自动返回”功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM