测试 PayPal 表单时出现 "Some required information missing" 错误

Getting a "Some required information missing" error testing a PayPal form

出现错误:使用此表单时缺少一些必需的信息:

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_top">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="custom" value="$id">
    <input type="hidden" name="hosted_button_id" value="PGZ7LZ2K66GLQ">
    <input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
    <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>

我遗漏了什么信息?

您的托管按钮有问题id.May可能是字符错误或您使用的是 LIVE paypal 帐户托管 ID。 您可以尝试生成新的 button.I 只需将托管按钮 ID 替换为我的即可。

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_top">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="custom" value="3434">
    <input type="hidden" name="hosted_button_id" value="DG2WCMX8VL59Q">
    <input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
    <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>