Reputation: 688
Getting error: Some required information missing from using this 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>
What information have I left out?
Upvotes: 0
Views: 65
Reputation: 6463
Something is wrong with your hosted button id.May be wrong characters or you are using a LIVE paypal account hosted id. You could try to generate new button.I just replaced the hosted button id with mine and it works.
<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>
Upvotes: 1