{% include donations-paypal.html %}
Last active
November 24, 2022 03:53
-
-
Save ivanchromjak/29433af49e209995f737a52b45ec5712 to your computer and use it in GitHub Desktop.
Add PayPal donation button to Jekyll site
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
donations: | |
paypal: | |
text: Donate # Button text | |
id: 7334HG9754 # PayPal button ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if site.donations.paypal %} | |
<form class="paypalform" action="https://www.paypal.com/cgi-bin/webscr" method="post"> | |
<input type="hidden" name="cmd" value="_s-xclick"> | |
<input type="hidden" name="hosted_button_id" value="{{ site.donations.paypal.id | default: 'UNCONFIGURED' }}"> | |
<button class="donations uk-button uk-button-primary" name="submit"> | |
<span>{{ site.donations.paypal.text | default: 'Donations' }}</span> | |
</button> | |
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"> | |
</form> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment