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.
<formaction="https://www.paypal.com/cgi-bin/webscr"method="post"class="PayPalDonationForm"><inputname="cmd"type="hidden"value="_donations"/><inputname="item_name"type="hidden"value="Donation"/><!-- Put your PayPal email: --><inputname="business"type="hidden"value="example@companyname.com"/><!-- PayPal will send an IPN notification to this URL file: --><inputname="notify_url"type="hidden"value="../ipn_file_path.php"/><!-- The return page url once the donations payment completed: --><inputname="return"type="hidden"value="../thankyou_file_path.php"/><!-- Signifies that the transaction data will be passed to the return page by POST: --><inputname="rm"type="hidden"value="2"/><!-- General configuration variables for the paypal landing page. --><inputname="no_note"type="hidden"value="1"/><inputname="cbt"type="hidden"value="Go Back To The Site"/><inputname="no_shipping"type="hidden"value="1"/><inputname="lc"type="hidden"value="US"/><inputname="currency_code"type="hidden"value="USD"/><!-- The amount of the transaction --><selectname="amount"><optionselected="selected"value="10">$10</option><optionvalue="20">$20</option><optionvalue="30">$30</option><optionvalue="40">$40</option></select><!-- You can change the image of the button and replace with your own image: --><inputalt="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"/><imgsrc="https://www.paypal.com/en_US/i/scr/pixel.gif"alt=""width="1"height="1"/></form>
Note:
Replace 'example@companyname.com' 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
Popular Posts Hits
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.
Note:
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:
Already have an account? Login into comment