为什么我收到“无效链接”尝试进行 PayPal 订阅时出错?

发布于 2024-12-07 04:58:06 字数 1872 浏览 0 评论 0原文

当我尝试通过此 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烟若柳尘 2024-12-14 04:58:06

该代码运行良好。问题是我需要创建一个企业沙箱帐户,而不是使用常规的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文