{"id":278,"date":"2009-06-20T01:02:01","date_gmt":"2009-06-19T19:32:01","guid":{"rendered":"http:\/\/www.bin-co.com\/blog\/?p=278"},"modified":"2009-06-20T01:02:01","modified_gmt":"2009-06-19T19:32:01","slug":"creating-a-paypal-donate-widget-in-wordpress-without-a-plugin","status":"publish","type":"post","link":"https:\/\/www.bin-co.com\/blog\/2009\/06\/creating-a-paypal-donate-widget-in-wordpress-without-a-plugin\/","title":{"rendered":"Creating a Paypal Donate Widget in WordPress &#8211; Without a Plugin"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.bin-co.com\/blog\/wp-content\/uploads\/2009\/03\/halo_wordpress.jpg\" alt=\"WordPress Helo Effect\" title=\"WordPress Helo Effect\" width=\"300\" height=\"233\" class=\"aligncenter size-full wp-image-238 intro\" align=\"right\" \/><\/p>\n<p class=\"intro\"><a href=\"http:\/\/www.supriyadisw.net\/2006\/11\/paypal-donate-plugin-for-wordpress-widget-support\">Paypal donate plugins<\/a>. This is extremely simple to implement &#8211; you don&#8217;t even have to edit the code to get this done.<\/p>\n<h2>Widget Mode<\/h2>\n<p>Open the admin side of your blog and <strong class=\"highlight\">go to Appearance &gt; Widgets. Now add a Text widget<\/strong> to the sidebar you want the widget in. <strong class=\"highlight\">Edit it and paste the HTML code<\/strong> from the <a href=\"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_pdn_donate_techview_outside\">Paypal site<\/a>.<\/p>\n<pre><code class=\"html\">&lt;form name=\"_xclick\" action=\"https:\/\/www.paypal.com\/cgi-bin\/webscr\" method=\"post\"&gt;\n&lt;input type=\"hidden\" name=\"cmd\" value=\"_xclick\"&gt;\n&lt;input type=\"hidden\" name=\"business\" value=\"binnyva@hotmail.com\"&gt;\n&lt;input type=\"hidden\" name=\"item_name\" value=\"Donation\"&gt;\n&lt;input type=\"hidden\" name=\"currency_code\" value=\"USD\"&gt;\n&lt;input type=\"hidden\" name=\"amount\" value=\"25.00\"&gt;\n&lt;input type=\"image\" src=\"http:\/\/www.paypal.com\/en_US\/i\/btn\/btn_donate_LG.gif\" border=\"0\" name=\"submit\" alt=\"Make payments with PayPal - it's fast, free and secure!\"&gt;\n&lt;\/form&gt;<\/code><\/pre>\n<p>Make sure you <strong class=\"highlight\">use your own paypal ID in the business field<\/strong>.<\/p>\n<p>Save the widget &#8211; and you&#8217;re done.<\/p>\n<h2>Theme Mode<\/h2>\n<p>Another method is to add the same code to the theme&#8217;s code directly. Usually in the <code>sidebar.php<\/code> file. I kind of prefer this method &#8211; but it involves code editing, FTP, etc. Not everyone is comfortable with this.<\/p>\n<h2>Post Mode<\/h2>\n<p>Last but not the least, you can embed the code directly into a post. This is perhaps the simplest of all. Below is a working sample of the code&#8230;<\/p>\n<form name=\"_xclick\" action=\"https:\/\/www.paypal.com\/cgi-bin\/webscr\" method=\"post\">\n<input type=\"hidden\" name=\"cmd\" value=\"_xclick\"><br \/>\n<input type=\"hidden\" name=\"business\" value=\"binnyva@hotmail.com\"><br \/>\n<input type=\"hidden\" name=\"item_name\" value=\"Donate\"><br \/>\n<input type=\"hidden\" name=\"currency_code\" value=\"USD\"><br \/>\n<input type=\"hidden\" name=\"amount\" value=\"5.00\"><br \/>\n<input type=\"image\" src=\"http:\/\/www.paypal.com\/en_US\/i\/btn\/btn_donate_LG.gif\" border=\"0\" name=\"submit\" alt=\"Make payments with PayPal - it's fast, free and secure!\"><br \/>\n<\/form>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p><a href=\"http:\/\/www.supriyadisw.net\/2006\/11\/paypal-donate-plugin-for-wordpress-widget-support\">Paypal donate plugins<\/a>. This is extremely simple to implement &#8211; you don&#8217;t even have to edit the code to get this done.<\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,31],"tags":[97,204,212,213,251,302],"class_list":["post-278","post","type-post","status-publish","format-standard","hentry","category-tutorial","category-wordpress","tag-donate","tag-paypal","tag-plugin","tag-plugin-killer","tag-series","tag-widget"],"_links":{"self":[{"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/posts\/278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/comments?post=278"}],"version-history":[{"count":0,"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/posts\/278\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/media?parent=278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/categories?post=278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/tags?post=278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}