How to Add a PayPal Donation Button in Joomla

In General
1300

How to Add a PayPal Donation Button in Joomla

Most of Ecommerce sites like PayPal, Google Checkout and other ecommerce sites provide payment integration code in HTML code or in any other langauges that you can use to add links such as Add to Cart, Buy Now or Donation buttons into your Website.

1. How to add paypal donation button in HTML or PHP file

Lets copy below code and paste into any HTML file or PHP file or Custom HTML Joomla Module.

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" class="PayPalDonationForm">
	<input name="cmd" type="hidden" value="_donations" /> 
	<input name="item_name" type="hidden" value="Donation" /> 
	<!-- Put your PayPal email: --> 
	<input name="business" type="hidden" value="[email protected]" /> 
	<!-- PayPal will send an IPN notification to this URL file: --> 
	<input name="notify_url" type="hidden" value="../ipn_file_path.php" /> 
	<!-- The return page url once the donations payment completed: --> 
	<input name="return" type="hidden" value="../thankyou_file_path.php" /> 
	<!-- Signifies that the transaction data will be passed to the return page by POST: --> 
	<input name="rm" type="hidden" value="2" /> 
	<!-- General configuration variables for the paypal landing page. --> 
	<input name="no_note" type="hidden" value="1" /> 
	<input name="cbt" type="hidden" value="Go Back To The Site" /> 
	<input name="no_shipping" type="hidden" value="1" /> 
	<input name="lc" type="hidden" value="US" /> 
	<input name="currency_code" type="hidden" value="USD" /> 
	<!-- The amount of the transaction -->
	<select name="amount">
		<option selected="selected" value="10">$10</option>
		<option value="20">$20</option>
		<option value="30">$30</option>
	<option value="40">$40</option>
	</select>
	<!-- You can change the image of the button and replace with your own image: --> 
	<input alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" type="image" /> 
	<img src="https://www.paypal.com/en_US/i/scr/pixel.gif" alt="" width="1" height="1" />
</form>

Note:

  • Replace '[email protected]' email to your email.
  • Replace 'notify_url' url '../ipn_file_path.php' to your PHP file.
  • Replace 'return' url '../thankyou_file_path.php' to your PHP or HTML file.
  • Edit selection options 'amount' by yourself.

2. How to add paypal donation button in Joomla CMS

If you would like to insert or add in Joomla then use builtin Joomla Custom HTML module instead of just pasting the code into an article. This way you can put the link in a module position on as many page as you like. You can also put the module inside an article using the {loadposition myposition} command.

We provide Joomla Donation module for free and get it from here

Here's we provide steps for how you do it:

  • Download the PS Simple Donation Module
  • Login into administration area of your Joomla site, go to Extensions >> Install / Uninstall and upload the file to install.
  • In the administration area of your Joomla site, go to Extensions >> Module Manager and locate the PS Simple Donation Module and open the module.
  • Then follow our PS Simple Donation module documentation here
  • If would like get support regarding our Joomla module then click here
Rating
  • (1 Ratings)