paypal_form.tpl.php in Paypal Donation 6
1 theme call to paypal_form.tpl.php
- paypal_donate_nodeapi in ./paypal_donate.module
- This function is called with every node event. In this case we use this function to render
the Paypal form on the user side of the website (So on watching the content). It will precent
the Paypal button for users to donate money to the website.
File
paypal_form.tpl.php
View source
<div class="node_<?php
print $node->nid;
?>">
<?php
print $node->body;
?>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="<?php
print $node->paypal_account;
?>">
<input type="hidden" name="item_name" value="Donation">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHostedGuest">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</div>