{"id":3177,"date":"2013-05-06T09:19:22","date_gmt":"2013-05-06T16:19:22","guid":{"rendered":"http:\/\/www.digitalaccesspass.com\/doc\/?p=3177"},"modified":"2014-10-19T14:17:03","modified_gmt":"2014-10-19T21:17:03","slug":"dap-user-subscription","status":"publish","type":"post","link":"http:\/\/digitalaccesspass.com\/doc\/dap-user-subscription\/","title":{"rendered":"DAP User Subscription"},"content":{"rendered":"<address>In DAP 4.6.2, we added\u00a0 a user-facing &#8216;subscription cancellation&#8217;\u00a0 feature for transactions processed by Paypal\/Authorize.net.<strong><br \/>\n<\/strong><\/address>\n<address>\u00a0<\/address>\n<address><strong>In DAP 4.7, we have added\u00a0 a\u00a0 user-facing &#8216;subscription cancellation&#8217;\u00a0 feature for transactions processed by Stripe.<\/strong><\/address>\n<address>\u00a0<\/address>\n<address>You can configure the following shortcode to allow your users to\u00a0 &#8216;<strong>Cancel their Subscription<\/strong>&#8216;.<\/address>\n<address>\u00a0<\/address>\n<address>Please NOTE: You can also use this shortcode to allow your members to see a list of their latest payment transactions (the latest transaction per product).<\/address>\n<address>\u00a0<\/address>\n<address><strong>[DAPUserSubscriptions showalltransactions=&#8221;Y&#8221; showcancel=&#8221;Y&#8221; cancelimage=&#8221;http:\/\/YOURSITE.com\/wp-content\/plugins\/DAP-WP-LiveLinks\/includes\/images\/CancelButtonUp.gif&#8221; template=&#8221;template1&#8243; productId=&#8221;ALL&#8221;<\/strong>]<strong>[\/DAPUserSubscriptions]<\/strong><\/address>\n<address>\u00a0<\/address>\n<address><a href=\"http:\/\/www.digitalaccesspass.com\/doc\/wp-content\/uploads\/2013\/05\/user-facing-cancel1.png\"><img loading=\"lazy\" class=\"\" src=\"http:\/\/www.digitalaccesspass.com\/doc\/wp-content\/uploads\/2013\/05\/user-facing-cancel1.png\" alt=\"user-facing-cancel\" width=\"659\" height=\"290\" \/><\/a><\/address>\n<address>\u00a0<\/address>\n<address>If the user clicks on &#8216;<strong>Cancel<\/strong>&#8216; Link\/Image, DAP will automatically cancel their current subscription with Paypal Standard or Authorize.net.\u00a0<\/address>\n<address>\u00a0<\/address>\n<address>The &#8216;Cancel&#8217; feature will ONLY work with :<\/address>\n<address>\u00a0<\/address>\n<address><strong>1) dap-generated-button-for-paypal-standard<\/strong> AND<\/address>\n<address><strong>2) dap-shopping-cart<\/strong> that integrates with <strong>Authorize.net<\/strong> or <strong>Paypal Payments PRO or Stripe.com<\/strong>.\u00a0<\/address>\n<address>\u00a0<\/address>\n<address>It will not work with any other payment processors or shopping carts.<a href=\"http:\/\/www.digitalaccesspass.com\/doc\/wp-content\/uploads\/2013\/05\/user-facing-cancel-image1.png\"><img loading=\"lazy\" class=\"alignleft  wp-image-4499\" src=\"http:\/\/www.digitalaccesspass.com\/doc\/wp-content\/uploads\/2013\/05\/user-facing-cancel-image1.png\" alt=\"user-facing-cancel-image\" width=\"294\" height=\"109\" \/><\/a><\/address>\n<address>\u00a0<\/address>\n<address><strong>Attributes:<\/strong><\/address>\n<address><strong>a) showalltransactions=&#8221;N&#8221; <\/strong><\/address>\n<address>\u00a0If set to &#8220;Y&#8221;, the <strong>DAPUserSubscriptions <\/strong>shortcode will show the latest transactions (one transaction per product) and not just the Paypal \/ Authnet \/ Stripe ones.<\/address>\n<address>\u00a0<\/address>\n<address>If set to &#8220;N&#8221;, the <strong>DAPUserSubscriptions <\/strong>shortcode will show the latest &#8216;Paypal \/ Authnet \/ Stripe subscription&#8217; transactions only.<\/address>\n<address>\u00a0<\/address>\n<address><strong>b) showcancel=&#8221;Y&#8221;<\/strong><\/address>\n<address>\u00a0If set to &#8220;Y&#8221;, a user-facing-cancel link will show up next to cancel-able transactions (authnet \/ paypal \/ stripe subscription).<\/address>\n<address>\u00a0<\/address>\n<address>This will allow users to cancel their own subscription. Only authnet \/ paypal \/ stripe transactions can be cancelled by users using this feature.<\/address>\n<address>\u00a0<\/address>\n<address><strong>The cancel link\/button will ONLY show up for Paypal \/ Authnet &#8220;Subscription\/Recurring&#8221; transactions.<\/strong><\/address>\n<address>\u00a0<\/address>\n<address><strong>c) template=&#8221;template1&#8243;\u00a0 OR <\/strong><strong> template=&#8221;template2&#8243;\u00a0 <\/strong><\/address>\n<address>\u00a0You can use template1 or template2 depending on your preferred display style. The template1 uses a horizontal layout. The template2 uses vertical layout.<\/address>\n<address>\u00a0<\/address>\n<address><strong>Template1 layout:<\/strong><\/address>\n<address><a href=\"http:\/\/www.digitalaccesspass.com\/doc\/wp-content\/uploads\/2013\/05\/user-facing-cancel2.png\"><img loading=\"lazy\" class=\"alignleft  wp-image-4492\" src=\"http:\/\/www.digitalaccesspass.com\/doc\/wp-content\/uploads\/2013\/05\/user-facing-cancel2.png\" alt=\"user-facing-cancel\" width=\"447\" height=\"141\" \/><\/a><\/address>\n<address>\u00a0<\/address>\n<address>\u00a0<\/address>\n<address>\u00a0<\/address>\n<address>\u00a0<\/address>\n<address>\u00a0<\/address>\n<address>\u00a0<\/address>\n<address>\u00a0<\/address>\n<address><strong>Template2 layout:<\/strong><\/address>\n<address>\u00a0<a href=\"http:\/\/www.digitalaccesspass.com\/doc\/wp-content\/uploads\/2013\/05\/user-facing-cancel-template2.png\"><img loading=\"lazy\" class=\"alignleft  wp-image-4494\" src=\"http:\/\/www.digitalaccesspass.com\/doc\/wp-content\/uploads\/2013\/05\/user-facing-cancel-template2.png\" alt=\"user-facing-cancel-template2\" width=\"373\" height=\"223\" \/><\/a><\/address>\n<address>\u00a0<\/address>\n<address><strong>\u00a0<\/strong><\/address>\n<address>\u00a0<\/address>\n<address>\u00a0<\/address>\n<address>\u00a0<\/address>\n<address>\u00a0<\/address>\n<address>\u00a0<\/address>\n<address>\u00a0<\/address>\n<address>\u00a0<\/address>\n<address>\u00a0<\/address>\n<address>\u00a0<\/address>\n<address><strong>d) bgcolor=&#8221;#f9f9f9&#8243; (Only applicable to template 2)<br \/>\n<\/strong><\/address>\n<address>\u00a0<\/address>\n<address><strong> e) productId=&#8221;ALL&#8221;<\/strong><\/address>\n<address>If you want to display all the latest transactions of all the products the logged-in user has, then user ALL.<\/address>\n<address>Otherwise, it can be the actual product Id of the product (for ex &#8211; productId=1) or a comma separated list of product Ids (for ex &#8211; productId=1,3 )<\/address>\n<address>\u00a0<\/address>\n<address><strong>f) <\/strong><strong>cancelimage<\/strong>=<strong>&#8220;http:\/\/yoursite.com\/wp-content\/plugins\/DAP-WP-LiveLinks\/includes\/images\/CancelButtonUp.gif&#8221;\u00a0 <\/strong><\/address>\n<address>\u00a0<\/address>\n<address>If you want to use an image for cancel button instead of cancel link, then <strong>cancelimage <\/strong>attribute to point to the url of the cancel button image.<\/address>\n<address>Please note: replace <strong>yoursite.com<\/strong> in the cancelimage url with the name of your site.<\/address>\n<address>\u00a0<\/address>\n<address><span style=\"text-decoration: underline;\"><strong>USECASES<\/strong><\/span><\/address>\n<address>\u00a0<\/address>\n<address><strong>1) Show All latest transactions on file to the logged-in user along with cancel link for cancel-able subscriptions. <\/strong><span style=\"text-decoration: underline;\"><strong><br \/>\n<\/strong><\/span><\/address>\n<address>\u00a0<\/address>\n<address><strong>[DAPUserSubscriptions showalltransactions=&#8221;Y&#8221; showcancel=&#8221;Y&#8221; template=&#8221;template1&#8243; productId=&#8221;ALL&#8221; ][\/DAPUserSubscriptions]<\/strong><\/address>\n<address>\u00a0<\/address>\n<address>If you use the above shortcode in a WP page, it will show all active transactions and if it&#8217;s a paypal or authnet or stripe subscription, it will show cancel button.<\/address>\n<address>\u00a0<\/address>\n<address>Your customers can cancel their authnet \/ paypal \/ stripe processed active subscriptions by clicking on the cancel button.<strong><br \/>\n<\/strong><\/address>\n<address>\u00a0<\/address>\n<address><a href=\"http:\/\/www.digitalaccesspass.com\/doc\/wp-content\/uploads\/2013\/05\/user-subscription-template1-transaction-all.png\"><img loading=\"lazy\" src=\"http:\/\/www.digitalaccesspass.com\/doc\/wp-content\/uploads\/2013\/05\/user-subscription-template1-transaction-all.png\" alt=\"user-subscription-template1-transaction-all\" width=\"434\" height=\"108\" \/><\/a>\u00a0<\/address>\n<address>\u00a0<\/address>\n<address>\u00a0<\/address>\n<address><strong>Cancel button will only show for :<\/strong><\/address>\n<address>\u00a0&#8211; Transactions that are cancellation eligble (for ex &#8211; it will show for active\u00a0 subscriptions but not for one-time-purchases)<\/address>\n<address>&#8211; And only if the cancel-eligible transactions are from Paypal or Authnet or Stripe.\u00a0\u00a0 It will NOT show for other payment processors like Clickbank, Infusionsoft etc.<\/address>\n<address>\u00a0<\/address>\n<address>You can customize the table header names and the cancel button image. The template1 files are under \/wp-content\/plugins\/DAP-WP-LiveLinks\/includes\/cancel\/template1 folder.<strong><br \/>\n<\/strong><\/address>\n<address>The template2 files are under \/wp-content\/plugins\/DAP-WP-LiveLinks\/includes\/cancel\/template2 folder.<strong><br \/>\n<\/strong><\/address>\n<address>\u00a0<\/address>\n<address>If you want to customize the table layout, copy autocanceltemplate.html to customautocanceltemplate.html and make the updates to customautocanceltemplate.html.<\/address>\n<address>If you want to customize the template1 css, copy \/wp-content\/plugins\/DAP-WP-LiveLinks\/includes\/cancel\/template1\/css\/autocanceltemplate.css to \/wp-content\/plugins\/DAP-WP-LiveLinks\/includes\/cancel\/template1\/css\/customautocanceltemplate.css and make updates to customautocanceltemplate.css. If you want to customize the template2 css, copy \/wp-content\/plugins\/DAP-WP-LiveLinks\/includes\/cancel\/template2\/css\/autocanceltemplate.css to \/wp-content\/plugins\/DAP-WP-LiveLinks\/includes\/cancel\/template2\/css\/customautocanceltemplate.css and make updates to customautocanceltemplate.css.<\/address>\n<address>\u00a0<\/address>\n<address><strong>Here&#8217;s how it works: <\/strong><\/address>\n<address>\u00a0<\/address>\n<address>DAP picks up all the active products the user has.<\/address>\n<address>\u00a0<\/address>\n<address>For each active product, it checks if\u00a0 there is a purchase transaction (transaction Id &gt; 0) associated with that user-&gt;product row in Manage Users page.<\/address>\n<address>&#8211;\u00a0 if yes, the row is displayed with a cancel option.<\/address>\n<address>&#8211;\u00a0 if no, the script will move on to the next product<\/address>\n<address>\u00a0<\/address>\n<address><strong>2) Show just cancel-able transactions on file to the logged-in user along with cancel link for cancel-able subscriptions<\/strong><\/address>\n<address>\u00a0<\/address>\n<address><strong>[DAPUserSubscriptions showalltransactions=&#8221;N&#8221; showcancel=&#8221;Y&#8221; template=&#8221;template1&#8243; bgcolor=&#8221;#f9f9f9&#8243; productId=&#8221;ALL&#8221; ][\/DAPUserSubscriptions]<\/strong><\/address>\n<address><strong><br \/>\n<\/strong><\/address>\n<address>If you use the above shortcode in a WP page, it will show only cancel eligible transactions (paypal \/ authnet \/ stripe subscriptions). Your customers can cancel their authnet \/ paypal \/ stripe active subscriptions by clicking on the cancel button\/link.<strong><br \/>\n<\/strong><\/address>\n<address>\u00a0<\/address>\n<address><strong>Here&#8217;s how it works:<\/strong><br \/>\nPick all the active products the user has.<\/address>\n<address>For each active product, check if\u00a0 there is a purchase transaction (transaction Id &gt; 0) associated with that user-&gt;product row in Manage Users page.<\/address>\n<address>&#8211; if yes, check if it&#8217;s a subscription purchase (IPN received by dap from the payment processor contains\u00a0recurring_payment_id, or sub_id or subscr_id) and if yes, show it with a cancel button.<\/address>\n<address>\u00a0<\/address>\n<address><strong>Note: <\/strong><\/address>\n<address>\u00a0&#8211; The cancel button will only show for authnet \/ paypal \/stripe subscription purchases. Auto-cancel not supported for other payment processors like Clickbank or Infusionsoft.<\/address>\n<p>&#8211; Only cancel eligible (or already cancelled) transactions will show (i.e. one-time purchases will not show)<\/p>\n<p>=====================================================================================<\/p>\n<p>You can customize the &#8216;cancel success msg&#8217;, &#8216;cancel failure message&#8217; and the &#8216;cancel image&#8217; as shown below:<\/p>\n<p><strong>[DAPUserSubscriptions showalltransactions=&#8221;Y&#8221; showcancel=&#8221;Y&#8221; cancelsuccess=&#8221;Subscription Cancellation Completed Successfully!&#8221; cancelfailed=&#8221;Sorry, could not cancel the subscription!&#8221; cancelimage=&#8221;http:\/\/yoursite.com\/wp-content\/plugins\/DAP-WP-LiveLinks\/includes\/images\/CancelButtonUp.gif&#8221;\u00a0 template=&#8221;template1&#8243;][\/DAPUserSubscriptions]<\/strong><\/p>\n<p><a href=\"http:\/\/www.digitalaccesspass.com\/doc\/wp-content\/uploads\/2013\/05\/user-subscription-template1-cancel-button.png\"><img loading=\"lazy\" src=\"http:\/\/www.digitalaccesspass.com\/doc\/wp-content\/uploads\/2013\/05\/user-subscription-template1-cancel-button.png\" alt=\"user-subscription-template1-cancel-button\" width=\"420\" height=\"105\" \/><\/a><\/p>\n<p><strong>Please NOTE:<\/strong><\/p>\n<p>If showalltransactions=&#8221;Y&#8221;, then DapUserSubscriptions shortcode will show list of all products the users has from dap-&gt;manage users page.<\/p>\n<p>If a product does not show up even\u00a0 though the user has access, it could be because:<\/p>\n<p>&#8211; No transactionId ( number &gt; 0) exists in dap users manage for this user-&gt;product (check Trans Id) field.\u00a0 Only paid products end up on this page where you have the shortcode.<\/p>\n<p>&#8211; If the trans Id field says &#8216;FREE&#8217; or &#8216;PAID&#8217; (admin added), then these products will not be displayed in the DAPUSersSubscritpions page. This page will only show products that have a transaction associated with it (paid purchase).<\/p>\n<p>&#8211; The product status is inactive.<\/p>\n<p>&#8211; Manually added transaction<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In DAP 4.6.2, we added\u00a0 a user-facing &#8216;subscription cancellation&#8217;\u00a0 feature for transactions processed by Paypal\/Authorize.net. \u00a0 In DAP 4.7, we have added\u00a0 a\u00a0 user-facing &#8216;subscription cancellation&#8217;\u00a0 feature for transactions processed by Stripe. \u00a0 You can configure the following shortcode to allow your users to\u00a0 &#8216;Cancel their Subscription&#8216;. \u00a0 Please NOTE: You can also use this [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[20],"tags":[],"_links":{"self":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/3177"}],"collection":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/comments?post=3177"}],"version-history":[{"count":87,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/3177\/revisions"}],"predecessor-version":[{"id":4865,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/3177\/revisions\/4865"}],"wp:attachment":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/media?parent=3177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/categories?post=3177"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/tags?post=3177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}