From 0c64b9ce5f3c3c12567f70b5b4e167cdef23d4de Mon Sep 17 00:00:00 2001 From: SerHack <27734319+serhack@users.noreply.github.com> Date: Fri, 6 Jul 2018 21:50:06 +0200 Subject: [PATCH] Adding support for subscriptions --- monero/include/monero_payments.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/monero/include/monero_payments.php b/monero/include/monero_payments.php index 92c8d04..1e44cec 100644 --- a/monero/include/monero_payments.php +++ b/monero/include/monero_payments.php @@ -83,6 +83,18 @@ class Monero_Gateway extends WC_Payment_Gateway } $this->monero_daemon = new Monero_Library($this->host, $this->port); $this->cryptonote = new Cryptonote(); + + $this->supports = array( 'subscriptions', 'products' ); + $this->supports = array( + 'products', + 'subscriptions', + 'subscription_cancellation', + 'subscription_suspension', + 'subscription_reactivation', + 'subscription_amount_changes', + 'subscription_date_changes', + 'subscription_payment_method_change' + ); } public function get_icon()