{"id":3101,"date":"2013-03-17T21:19:47","date_gmt":"2013-03-18T04:19:47","guid":{"rendered":"http:\/\/www.digitalaccesspass.com\/doc\/?p=3101"},"modified":"2014-03-01T22:32:58","modified_gmt":"2014-03-02T06:32:58","slug":"dapautocancel","status":"publish","type":"post","link":"http:\/\/digitalaccesspass.com\/doc\/dapautocancel\/","title":{"rendered":"[DAPAutoCancel]"},"content":{"rendered":"<address>\u00a0<strong>This feature is not supported currently. It will be available in DAP 4.5 (upcoming release of dap).<\/strong><\/address>\n<address>\u00a0<\/address>\n<address><strong>1) User-facing Cancel Button:<\/strong><\/address>\n<address>\u00a0<\/address>\n<address><strong> [DAPUserCancel showalltransactions=&#8221;Y&#8221; showcancel=&#8221;Y&#8221;][\/DAPUserCancel]<\/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 subscription, it will show cancel button. Your customers can cancel their authnet \/ paypal active subscriptions by clicking on the cancel button.<strong><br \/>\n<\/strong><\/address>\n<address>\u00a0<\/address>\n<address><strong>Here&#8217;s how it works:<\/strong><\/address>\n<p>DAP picks up all the active products the user has.<\/p>\n<p>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.<\/p>\n<p>&#8211;\u00a0 if yes, the row is displayed with a cancel option.<\/p>\n<p>&#8211;\u00a0 if no, the script will move on to the next product<\/p>\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.\u00a0\u00a0 It will NOT show for other payment processors like Clickbank, Infusionsoft etc.<\/address>\n<address>\u00a0<\/address>\n<address><strong>Here&#8217;s how it will look <\/strong>(you can customize the table header names and the cancel button image) :<strong><br \/>\n<\/strong><\/address>\n<p><a href=\"http:\/\/www.digitalaccesspass.com\/doc\/wp-content\/uploads\/2013\/03\/autocancel_all.png\"><img loading=\"lazy\" class=\"alignleft size-full wp-image-3105\" alt=\"autocancel_all\" src=\"http:\/\/www.digitalaccesspass.com\/doc\/wp-content\/uploads\/2013\/03\/autocancel_all.png\" width=\"447\" height=\"152\" \/><\/a><br \/>\n<strong><\/strong><\/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[DAPUserCancel 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;][\/DAPUserCancel]\n<p><strong>2) [DAPUserCancel showalltransactions=&#8221;N&#8221; showcancel=&#8221;Y&#8221;][\/DAPUserCancel]<\/strong><\/p>\n<p>If you use this shortcode in a WP page, it will show transactions that are cancel-eligible (subscription transactions with paypal\/authnet only).<strong><br \/>\n<\/strong>Pick all the active products the user has.<\/p>\n<p>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.<\/p>\n<p>&#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.<\/p>\n<p><strong>Note: <\/strong><\/p>\n<address>\u00a0&#8211; The cancel button will only show for authnet \/ paypal 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><a href=\"http:\/\/www.digitalaccesspass.com\/doc\/wp-content\/uploads\/2013\/03\/autocancel_eligible.png\"><img loading=\"lazy\" alt=\"autocancel_eligible\" src=\"http:\/\/www.digitalaccesspass.com\/doc\/wp-content\/uploads\/2013\/03\/autocancel_eligible.png\" width=\"415\" height=\"107\" \/><\/a><\/p>\n<p><strong>3) <\/strong><strong>[DAPShowTransactions][\/DAPShowTransactions]<\/strong><\/p>\n<p>You can use this shortcode to show ALL transactions (it&#8217;s just a dump of user&#8217;s transaction history.\u00a0 Shows every single transaction for that user).<strong><\/strong><\/p>\n<p><a href=\"http:\/\/www.digitalaccesspass.com\/doc\/wp-content\/uploads\/2013\/03\/showalltransactions.png\"><img loading=\"lazy\" class=\"alignleft size-full wp-image-3108\" alt=\"showalltransactions\" src=\"http:\/\/www.digitalaccesspass.com\/doc\/wp-content\/uploads\/2013\/03\/showalltransactions.png\" width=\"436\" height=\"185\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0This feature is not supported currently. It will be available in DAP 4.5 (upcoming release of dap). \u00a0 1) User-facing Cancel Button: \u00a0 [DAPUserCancel showalltransactions=&#8221;Y&#8221; showcancel=&#8221;Y&#8221;][\/DAPUserCancel] \u00a0 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 subscription, it will show cancel [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9,55,115],"tags":[],"_links":{"self":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/3101"}],"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=3101"}],"version-history":[{"count":25,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/3101\/revisions"}],"predecessor-version":[{"id":4171,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/3101\/revisions\/4171"}],"wp:attachment":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/media?parent=3101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/categories?post=3101"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/tags?post=3101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}