mirror of
https://git.wownero.com/wownero/wownerowp.git
synced 2024-08-15 01:03:16 +00:00
Adding support for subscriptions
This commit is contained in:
parent
0b4d7edf33
commit
0c64b9ce5f
1 changed files with 12 additions and 0 deletions
|
@ -83,6 +83,18 @@ class Monero_Gateway extends WC_Payment_Gateway
|
||||||
}
|
}
|
||||||
$this->monero_daemon = new Monero_Library($this->host, $this->port);
|
$this->monero_daemon = new Monero_Library($this->host, $this->port);
|
||||||
$this->cryptonote = new Cryptonote();
|
$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()
|
public function get_icon()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue