{"id":400,"date":"2009-08-10T14:03:11","date_gmt":"2009-08-10T14:03:11","guid":{"rendered":"http:\/\/www.tipsandtricks-hq.com\/ecommerce\/?p=400"},"modified":"2024-06-04T08:36:37","modified_gmt":"2024-06-03T22:36:37","slug":"how-to-add-a-subscription-button-for-recurring-payment","status":"publish","type":"post","link":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/how-to-add-a-subscription-button-for-recurring-payment-400","title":{"rendered":"How to Add\/Create a Subscription Button for Recurring Payment"},"content":{"rendered":"<p>Configuring a Subscription button for recurring payment and adding it to a post or page is very easy using the WP eStore plugin.<\/p>\n<div class=\"custom_yellow_box\">\n<p><strong><span style=\"color: #ff0000;\">Please note that this documentation is for creating a PayPal subscription button only<\/span><\/strong><\/p>\n<p>Subscription payments for other payment gateways are handled via the <a href=\"https:\/\/www.tipsandtricks-hq.com\/wp-payment-gateway-bundle-plugin\" target=\"_blank\" rel=\"noopener\">payment gateway bundle<\/a> addon. Refer to the documentation of that addon if you are creating a subscription button for a different gateway.<\/p>\n<\/div>\n<h2>Creating A PayPal Subscription Button<\/h2>\n<p><iframe loading=\"lazy\" title=\"WP eStore PayPal Subscription Product Tutorial\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/xsuGGRsZyos?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>Follow the steps below to create a subscription product\/button in eStore plugin:<\/p>\n<p><strong>Step 1: <\/strong>Click on the &#8220;Add\/Edit Products&#8221; menu in your WP eStore admin area to create a new product.<\/p>\n<p><strong>Step 2:<\/strong> Fill in the product details as you see fit. You can enter a descriptive price in the &#8220;Price&#8221; field of a subscription product. Example values:<\/p>\n<ul>\n<li>29 USD Per Month<\/li>\n<li>47 USD for 3 Installments<\/li>\n<li>7 Days Trial Then 19 USD Per Month<\/li>\n<\/ul>\n<p><strong>Step 3:<\/strong> Go to the &#8220;Subscription\/Recurring Payment Specific Settings&#8221; section of this product and enter the subscription details correctly. Save the product when you are done.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-399 size-full\" title=\"wp-shopping-cart-subscription-settings-filled-sc\" src=\"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-content\/uploads\/2009\/08\/wp-shopping-cart-subscription-settings-filled-sc.jpg\" alt=\"Configuring a Subscription Payment\" width=\"444\" height=\"517\" srcset=\"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-content\/uploads\/2009\/08\/wp-shopping-cart-subscription-settings-filled-sc.jpg 444w, https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-content\/uploads\/2009\/08\/wp-shopping-cart-subscription-settings-filled-sc-257x300.jpg 257w\" sizes=\"(max-width: 444px) 100vw, 444px\" \/><\/p>\n<p><strong>Step 4:<\/strong> Type the following shortcode to display a subscription button for this product on a WordPress post or page.<\/p>\n<p>[wp_eStore_subscribe_button id=\"15\"]<\/p>\n<p>Replace the PRODUCT-ID with the actual id of the product (example: 15)<\/p>\n<h3>Example Subscription Button<\/h3>\n<p>The following Subscription button charges the customer $29.95 USD for the first 7 days Then $49.95 USD for each month, for 6 installments.<\/p>\n<div class=\"eStore_button_wrapper eStore_pp_subscribe_wrapper\"><form action=\"https:\/\/www.paypal.com\/cgi-bin\/webscr\" method=\"post\" class=\"eStore-pp-subscribe-form eStore-pp-subscribe-form-15\" onsubmit=\"return ReadForm1(this, 3);\" ><div class=\"eStore_variation_top\"><\/div><input type=\"hidden\" name=\"product_name_tmp1\" value=\"Test Membership Subscription\" \/><input type=\"hidden\" name=\"price_tmp1\" value=\"49.95\" \/><input type=\"hidden\" name=\"cmd\" value=\"_xclick-subscriptions\" \/><input type=\"hidden\" name=\"charset\" value=\"utf-8\" \/><input type=\"hidden\" name=\"business\" value=\"sales@tipsandtricks-hq.com\" \/><input type=\"hidden\" name=\"item_name\" value=\"Test Membership Subscription\" \/><input type=\"hidden\" name=\"currency_code\" value=\"USD\" \/><input type=\"hidden\" name=\"item_number\" value=\"15\" \/><input type=\"hidden\" name=\"rm\" value=\"2\" \/><input type=\"hidden\" name=\"no_note\" value=\"1\" \/><input type=\"hidden\" name=\"a1\" value=\"29.95\" \/><input type=\"hidden\" name=\"p1\" value=\"7\" \/><input type=\"hidden\" name=\"t1\" value=\"D\" \/><input type=\"hidden\" name=\"a3\" value=\"49.95\" \/><input type=\"hidden\" name=\"p3\" value=\"1\" \/><input type=\"hidden\" name=\"t3\" value=\"M\" \/><input type=\"hidden\" name=\"sra\" value=\"1\" \/><input type=\"hidden\" name=\"src\" value=\"1\" \/><input type=\"hidden\" name=\"srt\" value=\"6\" \/><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=\"cancel_return\" value=\"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/\" \/><input type=\"hidden\" name=\"bn\" value=\"TipsandTricks_SP\" \/><input type=\"hidden\" name=\"cbt\" value=\"Click Here for Your Downloads\" \/><input type=\"hidden\" name=\"custom\" value=\"ip=216.73.216.179\" id=\"eStore_custom_values\" \/><input type=\"image\" src=\"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-content\/plugins\/wp-cart-for-digital-products\/images\/subscribe.gif\" class=\"eStore_subscribe_button\" alt=\"Subscribe\"\/><\/form><\/div>\n<p>You can also display the subscription button using one of the fancy displays like the following:<\/p>\n<div class=\"eStore-product eStore-fancy-wrapper\"><div class=\"eStore-thumbnail\"><a href=\"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-content\/uploads\/2009\/08\/wp-shopping-cart-jquery-lightbox-integration.jpg\" rel=\"lightbox[Test Membership Subscription]\" title=\"Test Membership Subscription\"><img decoding=\"async\" class=\"thumb-image\" src=\"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-content\/uploads\/2009\/08\/wp-shopping-cart-jquery-lightbox-integration.jpg\" alt=\"Test Membership Subscription\" \/><\/a><\/div><div class=\"eStore-product-description\"><div class=\"eStore-product-name\">Test Membership Subscription<\/div>Subscription button that charges the customer $29.95 USD for the first 7 days Then $49.95 USD for each month, for 6 installments<div class=\"eStore_price\"><span class=\"eStore_price_label\"><strong>Price: <\/strong><\/span><span class=\"eStore_price_value\">$29.95<\/span><\/div><div class=\"eStore_button_wrapper eStore_pp_subscribe_wrapper\"><form action=\"https:\/\/www.paypal.com\/cgi-bin\/webscr\" method=\"post\" class=\"eStore-pp-subscribe-form eStore-pp-subscribe-form-15\" onsubmit=\"return ReadForm1(this, 3);\" ><div class=\"eStore_variation_top\"><\/div><input type=\"hidden\" name=\"product_name_tmp1\" value=\"Test Membership Subscription\" \/><input type=\"hidden\" name=\"price_tmp1\" value=\"49.95\" \/><input type=\"hidden\" name=\"cmd\" value=\"_xclick-subscriptions\" \/><input type=\"hidden\" name=\"charset\" value=\"utf-8\" \/><input type=\"hidden\" name=\"business\" value=\"sales@tipsandtricks-hq.com\" \/><input type=\"hidden\" name=\"item_name\" value=\"Test Membership Subscription\" \/><input type=\"hidden\" name=\"currency_code\" value=\"USD\" \/><input type=\"hidden\" name=\"item_number\" value=\"15\" \/><input type=\"hidden\" name=\"rm\" value=\"2\" \/><input type=\"hidden\" name=\"no_note\" value=\"1\" \/><input type=\"hidden\" name=\"a1\" value=\"29.95\" \/><input type=\"hidden\" name=\"p1\" value=\"7\" \/><input type=\"hidden\" name=\"t1\" value=\"D\" \/><input type=\"hidden\" name=\"a3\" value=\"49.95\" \/><input type=\"hidden\" name=\"p3\" value=\"1\" \/><input type=\"hidden\" name=\"t3\" value=\"M\" \/><input type=\"hidden\" name=\"sra\" value=\"1\" \/><input type=\"hidden\" name=\"src\" value=\"1\" \/><input type=\"hidden\" name=\"srt\" value=\"6\" \/><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=\"cancel_return\" value=\"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/\" \/><input type=\"hidden\" name=\"bn\" value=\"TipsandTricks_SP\" \/><input type=\"hidden\" name=\"cbt\" value=\"Click Here for Your Downloads\" \/><input type=\"hidden\" name=\"custom\" value=\"ip=216.73.216.179\" id=\"eStore_custom_values\" \/><input type=\"image\" src=\"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-content\/plugins\/wp-cart-for-digital-products\/images\/subscribe.gif\" class=\"eStore_subscribe_button\" alt=\"Subscribe\"\/><\/form><\/div><\/div><\/div>\n<p>Feel free to hit the subscription button to see how it works.<\/p>\n<h3>Frequently Asked Questions<\/h3>\n<ul>\n<li>Can I customize the button image? &#8211; Yes, simply specify your custom button image URL in the &#8220;Button Image URL&#8221; field when configuring the product.<\/li>\n<li>Can I display a subscription button using one of the fancy displays? &#8211; Yes, please check the <a href=\"http:\/\/www.tipsandtricks-hq.com\/ecommerce\/?p=460\" target=\"_blank\" rel=\"noopener\">shortcodes documentation<\/a> to find a suitable shortcode.<\/li>\n<li>Can the subscription be added to the shopping cart? &#8211; No, please see the &#8220;Notes&#8221; section at the bottom of this page for detailed explanation.<\/li>\n<\/ul>\n<h3>Example Values for a Subscription Button<\/h3>\n<p>Here are some examples showing you what values to use to create a subscription button<\/p>\n<p><strong>Example 1<\/strong>: To create a subscription button\u00a0 that charges $27.00 USD for each month until canceled use the following values:<\/p>\n<p>Trial Billing Amount -&gt; (leave empty)<br \/>\nTrial Billing Period -&gt; (leave empty)<br \/>\nRecurring Billing Amount -&gt; 27.00<br \/>\nRecurring Billing Cycle -&gt; 1 Month<br \/>\nRecurring Billing Count -&gt; (leave empty)<\/p>\n<p><strong>Example 2<\/strong>: To create a subscription button\u00a0 that charges $29.95 USD for the first 7 days Then $49.95 USD for each month, for 6 installments use the following values:<\/p>\n<p>Trial Billing Amount -&gt; 29.95<br \/>\nTrial Billing Period -&gt; 7 days<br \/>\nRecurring Billing Amount -&gt; 49.95<br \/>\nRecurring Billing Cycle -&gt; 1 Month<br \/>\nRecurring Billing Count -&gt; 6<\/p>\n<h2>How to Test A Subscription Payment<\/h2>\n<ul>\n<li><em><span style=\"color: #000000;\">Please read <a href=\"https:\/\/support.tipsandtricks-hq.com\/forums\/topic\/testing-a-subscription-payment-in-estore\" target=\"_blank\" rel=\"noopener\">this post<\/a> before you test a subscription payment button.<\/span><\/em><\/li>\n<\/ul>\n<h3>Note:<\/h3>\n<p>Please note that the subscription payment cannot be added to the shopping cart. Why? because PayPal handles subscription payments through a different API than the normal one (Subscription payments are usually complex). How do you process two of the following payments together when you checkout using the shopping cart?<\/p>\n<ul>\n<li>Charge the customer $29.95 USD for the first 7 days Then $49.95 USD for each month<\/li>\n<li>Charge the customer $49.95 USD for the first 14 days Then $19.95 USD for each month, for 6 installments.<\/li>\n<\/ul>\n<p>Also, PayPal will not process multiple subscriptions through the cart checkout API so if a customer added 5 subscriptions to the cart and then tried to checkout it will get stuck.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Configuring a Subscription button for recurring payment and adding it to a post or page is very easy using the WP eStore plugin. Please note that this documentation is for creating a PayPal subscription button only Subscription payments for other payment gateways are handled via the payment gateway bundle addon. Refer to the documentation of [&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":[29,38,201],"class_list":{"0":"post-400","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-installation-and-usage","7":"tag-documentation","8":"tag-paypal-subscription","9":"tag-wordpress-estore","10":"entry"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/posts\/400"}],"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=400"}],"version-history":[{"count":0,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/posts\/400\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/media?parent=400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/categories?post=400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/tags?post=400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}