{"id":9767419,"date":"2017-12-09T20:55:34","date_gmt":"2017-12-09T20:55:34","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/add-support-for-woocommerce-subscriptions\/"},"modified":"2017-12-09T20:55:34","modified_gmt":"2017-12-09T20:55:34","slug":"add-support-for-woocommerce-subscriptions","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/add-support-for-woocommerce-subscriptions\/","title":{"rendered":"Add support for WooCommerce Subscriptions"},"content":{"rendered":"<p>Hi Vlado, <\/p>\n<p>I&#8217;ve been having trouble testing Subscriptions on my local server. I haven&#8217;t tested this extensively, but I think you can add this to the dummy gateway&#8217;s constructor and the gateway will support WooCommerce Subscriptions, Deposits, and refunds. At the very least, I am able to complete a test order with a subscription in the cart, which is what I needed for the moment now that the stripe plugin requires PHP5.6. <\/p>\n<pre><code>        $this-&gt;supports = array(\n            &#039;products&#039;,\n            &#039;refunds&#039;,\n            &#039;deposits&#039;,\n            &#039;subscriptions&#039;,\n            &#039;subscription_cancellation&#039;,\n            &#039;subscription_reactivation&#039;,\n            &#039;subscription_suspension&#039;,\n            &#039;subscription_amount_changes&#039;,\n            &#039;subscription_payment_method_change&#039;, \/\/ Subs 1.n compatibility.\n            &#039;subscription_payment_method_change_customer&#039;,\n            &#039;subscription_payment_method_change_admin&#039;,\n            &#039;subscription_date_changes&#039;,\n            &#039;multiple_subscriptions&#039;,\n        );<\/code><\/pre>\n<p>cheers,<br \/>\n-kathy<\/p>\n","protected":false},"template":"","class_list":["post-9767419","topic","type-topic","status-publish","hentry","topic-tag-subscriptions"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9767419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9767419\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=9767419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}