Skip to content

Instantly share code, notes, and snippets.

@kmgdevelopment
Created May 18, 2012 16:28
Show Gist options
  • Save kmgdevelopment/2726236 to your computer and use it in GitHub Desktop.
Save kmgdevelopment/2726236 to your computer and use it in GitHub Desktop.
Secure Paypal Donate Button with Custom Amount Field
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="business" value="[Your Secure Merchant ID]" >
<input type="hidden" name="cmd" value="_donations" >
<input type="hidden" name="item_name" value="[Donation Description]" >
<input type="hidden" name="return" value="http://yourdomain.com/thank-you" >
<div>
<label for="amount">Donation Amount:</label>
<input name="amount" type="text" id="amount" >
</div>
<input name="submit" type="submit" value="Donate" >
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment