获取错误:使用此表单时缺少一些必需的信息:
<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>
我遗漏了哪些信息?
答案 0 :(得分:1)
您的托管按钮ID有问题。可能是错误的字符或您正在使用LIVE paypal帐户托管ID。 您可以尝试生成新的按钮。我刚刚用我的托管按钮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>