Php 贝宝自动登录重定向
我想自动重定向到我的网站后,成功从贝宝全额付款 这是我的密码:Php 贝宝自动登录重定向,php,paypal,Php,Paypal,我想自动重定向到我的网站后,成功从贝宝全额付款 这是我的密码: <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="upload" value="1"> <input type="hidden" name="b
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="business" value="jtest@gmail.com">
<input type="hidden" name="item_name_1" value="Item #1">
<input type="hidden" name="amount_1" value="1.00">
<input type="hidden" name="item_name_2" value="Item #2">
<input type="hidden" name="amount_2" value="2.00">
<input type="hidden" name="return" value="http://localhost/thanks.php" />
<input type="submit" value="PayPal">
</form>
注意,“localhost”仅用作演示
我做错了什么?要启用自动重定向,请在PayPal配置文件的“网站支付首选项”中启用“自动返回”。 注意:这只会自动重定向已注册的PayPal用户。客户买家仍需点击“返回商户”按钮才能重新定向
您可以通过传入“cbt”变量自定义此“返回商户”按钮的文本:input type=“hidden”name=“cbt”value=“My custom text”将按钮重命名为“My custom text”.它没有重定向回我的网站。您是否尝试使用与
localhost
不同的值?我编辑了您的问题,并根据您的评论添加了有关“localhost”的说明。请再次检查我的编辑,以确保它是正确的,尽快。