为什么我收到“无效链接”尝试进行 PayPal 订阅时出错?
当我尝试通过此 PayPal 订阅表单设置付款时,出现错误。我正在使用 PayPal 沙箱对其进行测试。
我收到以下错误:
您用于进入 PayPal 系统的链接无效。请 查看链接并重试。
我的代码如下所示:
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="business" value="[email protected]" id="id_business" />
<input type="hidden" name="item_name" value="Standard" id="id_item_name" />
<input type="hidden" name="a3" value="29.00" id="id_a3" />
<input type="hidden" name="p3" value="1" id="id_p3" />
<input type="hidden" name="t3" value="M" id="id_t3" />
<input type="hidden" name="src" value="1" id="id_src" />
<input type="hidden" name="sra" value="1" id="id_sra" />
<input type="hidden" name="no_note" value="1" id="id_no_note" />
<input type="hidden" name="notify_url" value="http://example.org/dashboard/payments/paypal/notify" id="id_notify_url" />
<input type="hidden" name="cancel_return" value="http://example.org/dashboard/payments/paypal/cancel" id="id_cancel_return" />
<input type="hidden" name="return" value="http://example.org/dashboard/payments/paypal/return" id="id_return_url" />
<input type="hidden" name="cmd" value="_xclick-subscriptions" id="id_cmd" />
<input type="hidden" name="charset" value="utf-8" id="id_charset" />
<input type="hidden" name="currency_code" value="SGD" id="id_currency_code" />
<input type="hidden" name="no_shipping" value="1" id="id_no_shipping" />
<input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="Buy it Now" />
</form>
I'm getting an error when I'm trying to setup payment through this paypal subscriptions form. I'm testing it using the PayPal sandbox.
I'm getting the following error:
The link you have used to enter the PayPal system is invalid. Please
review the link and try again.
My code looks like this:
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="business" value="[email protected]" id="id_business" />
<input type="hidden" name="item_name" value="Standard" id="id_item_name" />
<input type="hidden" name="a3" value="29.00" id="id_a3" />
<input type="hidden" name="p3" value="1" id="id_p3" />
<input type="hidden" name="t3" value="M" id="id_t3" />
<input type="hidden" name="src" value="1" id="id_src" />
<input type="hidden" name="sra" value="1" id="id_sra" />
<input type="hidden" name="no_note" value="1" id="id_no_note" />
<input type="hidden" name="notify_url" value="http://example.org/dashboard/payments/paypal/notify" id="id_notify_url" />
<input type="hidden" name="cancel_return" value="http://example.org/dashboard/payments/paypal/cancel" id="id_cancel_return" />
<input type="hidden" name="return" value="http://example.org/dashboard/payments/paypal/return" id="id_return_url" />
<input type="hidden" name="cmd" value="_xclick-subscriptions" id="id_cmd" />
<input type="hidden" name="charset" value="utf-8" id="id_charset" />
<input type="hidden" name="currency_code" value="SGD" id="id_currency_code" />
<input type="hidden" name="no_shipping" value="1" id="id_no_shipping" />
<input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="Buy it Now" />
</form>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该代码运行良好。问题是我需要创建一个企业沙箱帐户,而不是使用常规的 PayPal 电子邮件。我希望他们的错误消息更具描述性。
The code is working fine. The issue was that I needed to create a business sandbox account, rather than using the regular PayPal email. I wish their error messages were a bit more descriptive.