ossp-web/SHARE/ossp_donation.wml
##
## ossp_donation.wml -- PayPal Donation Macros
## Copyright (c) 2000-2002 Ralf S. Engelschall <rse@engelschall.com>
##
<define-tag donation>
<preserve project return/>
<preserve name number/>
<set-var %attributes/>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="ossp-donation@ossp.org">
<ifeq "<get-var project>" "" <group
<set-var name="Open Source Support Donation (OSSP)">
<set-var number="donation-ossp">
/> <group
<set-var name="Open Source Support Donation (OSSP <get-var project>)">
<set-var number="donation-ossp-<get-var project>">
/>/>
<input type="hidden" name="item_name" value="<get-var name>">
<input type="hidden" name="item_number" value="<get-var number>">
<input type="hidden" name="no_shipping" value="1">
<ifeq "<get-var return>" "" <group
<input type="hidden" name="return" value="<get-var return>">
<input type="hidden" name="cancel_return" value="<get-var return>">
/>/>
<input type="hidden" name="cn" value="Personal Donation Note:">
#<input type="image" src="https://www.paypal.com/images/x-click-butcc-donate.gif" border="0" name="submit" alt="Online donation with PayPal!">
<input type="image" src="$(IMG)/donate.gif" border="0" name="submit" alt="Online donation with PayPal!">
</form>
<restore name number/>
<restore project return/>
</define-tag>