{"id":1973,"date":"2012-11-15T06:40:21","date_gmt":"2012-11-15T06:40:21","guid":{"rendered":"http:\/\/www.tipsandtricks-hq.com\/ecommerce\/?p=1973"},"modified":"2024-06-04T09:19:13","modified_gmt":"2024-06-03T23:19:13","slug":"how-to-create-paypal-donation-button","status":"publish","type":"post","link":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/how-to-create-paypal-donation-button-1973","title":{"rendered":"How to Create PayPal Donation Button"},"content":{"rendered":"<p>WordPress eStore allows you to create <strong>Donate<\/strong> button functionality so you can accept donation for a cause. The donation type buttons takes the user directly to the PayPal payment page for payment when clicked.<\/p>\n<h2>Creating a PayPal Donate Button<\/h2>\n<p><iframe loading=\"lazy\" title=\"How to Create PayPal Donation Button\" width=\"500\" height=\"375\" src=\"https:\/\/www.youtube.com\/embed\/skbrBG5uRzU?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p><strong>Step 1)<\/strong> Create an eStore product the same way you configure any eStore product. You can watch our <a href=\"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-estore-quick-setup-and-usage-video-tutorial-593\">video tutorials<\/a> if you don&#8217;t know how to create a product in eStore.<\/p>\n<p>Set the product price to <strong>0.00<\/strong>\u00a0(zero) if you want to allow your users to be able to specify the donation amount when they make the payment.<\/p>\n<p>Alternatively, set the product price value to a fixed amount (example: 25.00) to accept donation for that amount only.<\/p>\n<p><strong>Step 2)<\/strong> Create a WordPress post or page where you want to place the &#8220;Donate&#8221; button. You can explain why people should donate to your on this page.<\/p>\n<p><strong>Step 3)<\/strong> Use the following shortcode where you want eStore to put the donate button on the page (you created this in step 2):<br \/>\n<code><br \/>\n[wp_eStore_donate id=1]<br \/>\n<\/code><br \/>\n1 is the product id of the product you created in step 1.<\/p>\n<p>Here is a live example of a PayPal donate button created with WP eStore. Click on it to see how it works:<\/p>\n<form action=\"https:\/\/www.paypal.com\/cgi-bin\/webscr\" method=\"post\" ><input type=\"hidden\" name=\"charset\" value=\"utf-8\" \/><input type=\"hidden\" name=\"business\" value=\"sales@tipsandtricks-hq.com\"><input type=\"hidden\" name=\"cmd\" value=\"_donations\"><input type=\"hidden\" name=\"bn\" value=\"TipsandTricks_SP\" \/><input type=\"hidden\" name=\"item_name\" value=\"Donation for a Good Cause\"><input type=\"hidden\" name=\"item_number\" value=\"29\"><input type=\"hidden\" name=\"currency_code\" value=\"USD\"><input type=\"hidden\" name=\"notify_url\" value=\"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/?estore_pp_ipn=process\"><input type=\"hidden\" name=\"return\" value=\"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/thank-you\"><input type=\"hidden\" name=\"custom\" value=\"ip=216.73.217.6\" id=\"eStore_custom_values\" \/><input type=\"submit\" class=\"eStore_donate_button\" value=\"Donate\" \/><\/form>\n<p>You can use the PayPal donation button shortcode anywhere on your site to place a donate button. For example, if you want to place a donate button on your sidebar then add a &#8220;Text Widget&#8221; to the sidebar and use the above mentioned shortocde.<\/p>\n<p>When the users go to the PayPal payment page, they will be able to enter a donation amount and pay. They can also make that a recurring donation payment (if they want to). See example below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4195\" src=\"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-content\/uploads\/2012\/11\/paypal-donation-payment-example.png\" alt=\"paypal-donation-payment-example\" width=\"500\" height=\"113\" srcset=\"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-content\/uploads\/2012\/11\/paypal-donation-payment-example.png 500w, https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-content\/uploads\/2012\/11\/paypal-donation-payment-example-300x68.png 300w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/p>\n<h2>Customizing the &#8220;Donate&#8221; Button<\/h2>\n<h3>Option 1) Using a Custom Button Image<\/h3>\n<p>You can use a custom image for your donate button to make it look pretty. The following documentation explains how to use a custom button image for any eStore product.<\/p>\n<ul>\n<li><a href=\"https:\/\/support.tipsandtricks-hq.com\/forums\/topic\/how-to-change-the-buy-button-images-for-estore-and-simple-shopping-cart-plugins\" target=\"_blank\" rel=\"noopener\">How to use a custom button image for a product<\/a><\/li>\n<\/ul>\n<h3>Option 2) Customizing the Text of the Button<\/h3>\n<p>If you want to use a custom text for the button (instead of using a custom button image), you can do that too. You can add a parameter called &#8220;button_text&#8221; to specify the text you want to use for the donate button.<\/p>\n<p>Here is an example usage:<br \/>\n<code><br \/>\n[wp_eStore_donate id=1 button_text=\"Donate Money via PayPal\"]<br \/>\n<\/code><\/p>\n<p>The above shortcode will create a donate button with the text <strong>Donate Money via PayPal<\/strong>\u00a0for product 1.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress eStore allows you to create Donate button functionality so you can accept donation for a cause. The donation type buttons takes the user directly to the PayPal payment page for payment when clicked. Creating a PayPal Donate Button Step 1) Create an eStore product the same way you configure any eStore product. You can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[7],"tags":[112,113,114],"class_list":{"0":"post-1973","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-installation-and-usage","7":"tag-create-paypal-donation-button","8":"tag-paypal-donation","9":"tag-wordpress-paypal-donation","10":"entry"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/posts\/1973"}],"collection":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/comments?post=1973"}],"version-history":[{"count":0,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/posts\/1973\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/media?parent=1973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/categories?post=1973"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/tags?post=1973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}